Name
current_work —
retrieve current task's work struct
Synopsis
struct work_struct * current_work ( | void); |
Description
Determine if current task is a workqueue worker and what it's working on.
Useful to find out the context that the current task is running in.
Return
work struct if current task is a workqueue worker, NULL otherwise.