| Function report | 
| 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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| struct work_struct * | work | 
| 707 | data = atomic_long_read( & data) | 
| 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 | 
| Name | Describe | 
|---|---|
| try_to_grab_pending | ry_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_busy | work_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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |