函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-27 10:27:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__cancel_work

函数原型:static bool __cancel_work(struct work_struct *work, bool is_dwork)

返回类型:bool

参数:

类型参数名称
struct work_struct *work
boolis_dwork
3215  循环
3216  ret等于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
3217 此条件成立可能性小(为编译器优化)(ret == - EAGAIN)循环
3219  如果此条件成立可能性小(为编译器优化)(ret < 0)则返回:false
3222  set_work_pool_and_clear_pending(work, get_work_pool_id - return the worker pool ID a given work is associated with*@work: the work item of interest* Return: The worker_pool ID @work was last associated with.* %WORK_OFFQ_POOL_NONE if none.)
3223  local_irq_restore(flags)
3224  返回:ret
调用者
名称描述
cancel_delayed_workancel_delayed_work - cancel a delayed work*@dwork: delayed_work to cancel* Kill off a pending delayed_work