centos man page for kthread_worker_fn

Query: kthread_worker_fn

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

KTHREAD_WORKER_FN(9)						   Driver Basics					      KTHREAD_WORKER_FN(9)

NAME
kthread_worker_fn - kthread function to process kthread_worker
SYNOPSIS
int kthread_worker_fn(void * worker_ptr);
ARGUMENTS
worker_ptr pointer to initialized kthread_worker
DESCRIPTION
This function can be used as threadfn to kthread_create or kthread_run with worker_ptr argument pointing to an initialized kthread_worker. The started kthread will process work_list until the it is stopped with kthread_stop. A kthread can also call this function directly after extra initialization. Different kthreads can be used for the same kthread_worker as long as there's only one kthread attached to it at any given time. A kthread_worker without an attached kthread simply collects queued kthread_works.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 KTHREAD_WORKER_FN(9)
Related Man Pages
kthread(9) - netbsd
kproc_create(9) - debian
kproc(9) - debian
kproc_shutdown(9) - debian
kthread_exit(9) - netbsd
Similar Topics in the Unix Linux Community
MDADM Failure - where it came from?