函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue_internal.h Create Date:2022-07-27 10:23:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rrent_wq_worker - return struct worker if %current is a workqueue worker

函数原型:static inline struct worker *current_wq_worker(void)

返回类型:struct worker

参数:

67  如果in_task()且flags按位与进程处于工作队列中则返回:kthread_data(当前进程)
69  返回:NULL
调用者
名称描述
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.