Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_work_pool - return the worker_pool a given work was associated with*@work: the work item of interest* Pools are created and destroyed under wq_pool_mutex, and allows read* access under RCU read lock. As such, this function should be

Proto:static struct worker_pool *get_work_pool(struct work_struct *work)

Type:struct worker_pool

Parameter:

TypeParameterName
struct work_struct *work
707  data = atomic_long_read( & data)
710  workqueue_execute_end - called immediately after the workqueue callback*@work: pointer to struct work_struct* Allows to track workqueue execution.()
712  If data & WORK_STRUCT_PWQ Then Return pool
716  pool_id = data >> WORK_OFFQ_POOL_SHIFT
717  If pool_id == WORK_OFFQ_POOL_NONE Then Return NULL
720  Return dr_find() - Return pointer for given ID
Caller
NameDescribe
try_to_grab_pendingry_to_grab_pending - steal work item from worklist and disable irq*@work: work item to steal*@is_dwork: @work is a delayed_work*@flags: place to store irq state* Try to grab PENDING bit of @work. This function can handle @work in any
__queue_work
start_flush_work
work_busywork_busy - test whether a work is currently pending or running*@work: the work to be tested* Test whether @work is currently pending or running. There is no* synchronization around this function and the test result is