| Function report | 
| Source Code: kernel\workqueue.c | Create Date:2022-07-28 09:27:51 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:unsigned int work_busy(struct work_struct *work)
Type:unsigned int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct work_struct * | work | 
| 4549 | ret = 0 | 
| 4551 | If work_pending - Find out whether a work item is currently pending*@work: The work item in question(work) Then ret |= WORK_BUSY_PENDING | 
| 4556 | If pool Then | 
| 4557 | spin_lock_irqsave( & he pool lock , flags) | 
| 4560 | spin_unlock_irqrestore( & he pool lock , flags) | 
| 4564 | Return ret | 
| 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 |