1KTHREAD_WORKER_FN(9) Driver Basics KTHREAD_WORKER_FN(9)
2
3
4
6 kthread_worker_fn - kthread function to process kthread_worker
7
9 int kthread_worker_fn(void * worker_ptr);
10
12 worker_ptr
13 pointer to initialized kthread_worker
14
16 This function can be used as threadfn to kthread_create or kthread_run
17 with worker_ptr argument pointing to an initialized kthread_worker. The
18 started kthread will process work_list until the it is stopped with
19 kthread_stop. A kthread can also call this function directly after
20 extra initialization.
21
22 Different kthreads can be used for the same kthread_worker as long as
23 there's only one kthread attached to it at any given time. A
24 kthread_worker without an attached kthread simply collects queued
25 kthread_works.
26
28Kernel Hackers Manual 3.10 June 2019 KTHREAD_WORKER_FN(9)