Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\workqueue.c Create Date:2022-07-28 09:27:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__cancel_work

Proto:static bool __cancel_work(struct work_struct *work, bool is_dwork)

Type:bool

Parameter:

TypeParameterName
struct work_struct *work
boolis_dwork
3215  Do
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  When Value for the false possibility is greater at compile time(ret == - EAGAIN) cycle
3219  If Value for the false possibility is greater at compile time(ret < 0) Then Return 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  Return ret
Caller
NameDescribe
cancel_delayed_workancel_delayed_work - cancel a delayed work*@dwork: delayed_work to cancel* Kill off a pending delayed_work