函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function removes the work from the worker queue

函数原型:static bool __kthread_cancel_work(struct kthread_work *work, bool is_dwork, unsigned long *flags)

返回类型:bool

参数:

类型参数名称
struct kthread_work *work
boolis_dwork
unsigned long *flags
997  如果is_dwork
998  dwork等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(work, structkthread_delayed_work, work)
1000  worker等于worker
1008  Number of canceling calls that are running at the moment. 自加
1009  raw_spin_unlock_irqrestore( & lock, * flags)
1010  del_timer_sync( & timer)
1011  raw_spin_lock_irqsave( & lock, * flags)
1012  Number of canceling calls that are running at the moment. 自减
1019  如果非链表为空
1020  删除链表项并重新初始化
1021  返回:true
1024  返回:false
调用者
名称描述
kthread_mod_delayed_workkthread_mod_delayed_work - modify delay of or queue a kthread delayed work*@worker: kthread worker to use*@dwork: kthread delayed work to queue*@delay: number of jiffies to wait before queuing* If @dwork is idle, equivalent to kthread_queue_delayed_work()
__kthread_cancel_work_sync