1KTHREAD_RUN(9)                   Driver Basics                  KTHREAD_RUN(9)
2
3
4

NAME

6       kthread_run - create and wake a thread.
7

SYNOPSIS

9       kthread_run(threadfn, data, namefmt, ...);
10

ARGUMENTS

12       threadfn
13           the function to run until signal_pending(current).
14
15       data
16           data ptr for threadfn.
17
18       namefmt
19           printf-style name for the thread.
20
21       ...
22           variable arguments
23

DESCRIPTION

25       Convenient wrapper for kthread_create followed by wake_up_process.
26       Returns the kthread or ERR_PTR(-ENOMEM).
27
29Kernel Hackers Manual 3.10         June 2019                    KTHREAD_RUN(9)
Impressum