Function report | 
Source Code:kernel\kthread.c | 
Create Date:2022-07-28 09:30:38 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__kthread_cancel_work_sync
Proto:static bool __kthread_cancel_work_sync(struct kthread_work *work, bool is_dwork)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kthread_work * | work | |
| bool | is_dwork | 
| 1084 | int ret = false | 
| 1089 | raw_spin_lock_irqsave( & lock, flags) | 
| 1091 | WARN_ON_ONCE(worker != worker) | 
| 1095 | If current_work != work Then Go to out_fast | 
| 1103 | raw_spin_unlock_irqrestore( & lock, flags) | 
| 1105 | raw_spin_lock_irqsave( & lock, flags) | 
| 1108 | out_fast : | 
| 1109 | raw_spin_unlock_irqrestore( & lock, flags) | 
| 1110 | out : | 
| 1111 | Return ret | 
| Name | Describe | 
|---|---|
| kthread_cancel_work_sync | kthread_cancel_work_sync - cancel a kthread work and wait for it to finish*@work: the kthread work to cancel* Cancel @work and wait for its execution to finish. This function* can be used even if the work re-queues itself. On return from this | 
| kthread_cancel_delayed_work_sync | kthread_cancel_delayed_work_sync - cancel a kthread delayed work and* wait for it to finish.*@dwork: the kthread delayed work to cancel* This is kthread_cancel_work_sync() for delayed works.* Return: %true if @dwork was pending, %false otherwise. | 
| 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  |