1CURRENT_WORK(9) Driver Basics CURRENT_WORK(9)
23
4
NAME
6current_work - retrieve current task's work struct
7
SYNOPSIS
9struct work_struct * current_work(void);
10
ARGUMENTS
12void
13no arguments
14
DESCRIPTION
16Determine if current task is a workqueue worker and what it's working
17on. Useful to find out the context that the current task is running in.
18
RETURN
20work struct if current task is a workqueue worker, NULL otherwise.
21
COPYRIGHT
23Kernel Hackers Manual 3.10 June 2019 CURRENT_WORK(9)