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

NAME

6       current_work - retrieve current task's work struct
7

SYNOPSIS

9       struct work_struct * current_work(void);
10

ARGUMENTS

12       void
13           no arguments
14

DESCRIPTION

16       Determine if current task is a workqueue worker and what it's working
17       on. Useful to find out the context that the current task is running in.
18

RETURN

20       work struct if current task is a workqueue worker, NULL otherwise.
21
23Kernel Hackers Manual 3.10         June 2019                   CURRENT_WORK(9)
Impressum