函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:While queued, %WORK_STRUCT_PWQ is set and non flag bits of a work's data* contain the pointer to the queued pwq

函数原型:static inline void set_work_data(struct work_struct *work, unsigned long data, unsigned long flags)

返回类型:void

参数:

类型参数名称
struct work_struct *work>data. These functions should only be called while the work is
unsigned longdata
unsigned longflags
614  WARN_ON_ONCE(!work_pending - Find out whether a work item is currently pending*@work: The work item in question(>data. These functions should only be called while the work is))
615  atomic_long_set( & data, data | flags | work_static(>data. These functions should only be called while the work is))
调用者
名称描述
set_work_pwq
set_work_pool_and_keep_pending
set_work_pool_and_clear_pending
clear_work_data
mark_work_canceling