Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static inline void set_work_data(struct work_struct *work, unsigned long data, unsigned long flags)

Type:void

Parameter:

TypeParameterName
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))
Caller
NameDescribe
set_work_pwq
set_work_pool_and_keep_pending
set_work_pool_and_clear_pending
clear_work_data
mark_work_canceling