Function report |
Source Code:kernel\workqueue.c |
Create Date:2022-07-28 09:27:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__cancel_work_timer
Proto:static bool __cancel_work_timer(struct work_struct *work, bool is_dwork)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct work_struct * | work | |
bool | is_dwork |
3086 | Do |
3104 | If Value for the false possibility is greater at compile time(ret == - ENOENT) Then |
3108 | func = cwt_wakefn |
3111 | prepare_to_wait_exclusive( & cancel_waitq, & wait, TASK_UNINTERRUPTIBLE) |
3113 | If work_is_canceling(work) Then schedule() |
3115 | finish_wait( & cancel_waitq, & wait) |
3117 | When Value for the false possibility is greater at compile time(ret < 0) cycle |
3120 | mark_work_canceling(work) |
3121 | local_irq_restore(flags) |
3127 | If can kworkers be created yet? Then __flush_work(work, true) |
3130 | clear_work_data(work) |
3137 | smp_mb() |
3141 | Return ret |
Name | Describe |
---|---|
cancel_work_sync | ancel_work_sync - cancel a work and wait for it to finish*@work: the work to cancel* Cancel @work and wait for its execution to finish. This function* can be used even if the work re-queues itself or migrates to* another workqueue |
cancel_delayed_work_sync | ancel_delayed_work_sync - cancel a delayed work and wait for it to finish*@dwork: the delayed work cancel* This is 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 |