Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue_internal.h Create Date:2022-07-28 09:23:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rrent_wq_worker - return struct worker if %current is a workqueue worker

Proto:static inline struct worker *current_wq_worker(void)

Type:struct worker

Parameter:Nothing

67  If in_task() && flags & I'm a workqueue worker Then Return kthread_data(current process)
69  Return NULL
Caller
NameDescribe
is_chained_workTest whether @work is being queued from another work executing on the* same workqueue.
check_flush_dependencyheck_flush_dependency - check for flush dependency sanity*@target_wq: workqueue being flushed*@target_work: work item being flushed (NULL for workqueue flushes)* %current is trying to flush the whole @target_wq or @target_work on it
current_workrrent_work - retrieve %current task's work struct* 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.
current_is_workqueue_rescuerrrent_is_workqueue_rescuer - is %current workqueue rescuer?* Determine whether %current is a workqueue rescuer. Can be used from* work functions to determine whether it's being run off the rescuer task.* Return: %true if %current is a workqueue rescuer
set_worker_descset_worker_desc - set description for the current work item*@fmt: printf-style format string*@...: arguments for the format string* This function can be called by a running work function to describe what* the work item is about
current_is_asyncrrent_is_async - is %current an async worker task?* Returns %true if %current is an async worker task.