函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mod_delayed_work_on - modify delay of or queue a delayed work on specific CPU*@cpu: CPU number to execute work on*@wq: workqueue to use*@dwork: work to queue*@delay: number of jiffies to wait before queueing* If @dwork is idle, equivalent to

函数原型:bool mod_delayed_work_on(int cpu, struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay)

返回类型:bool

参数:

类型参数名称
intcpu
struct workqueue_struct *wq
struct delayed_work *dwork
unsigned longdelay
1702  循环
1703  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
1704 此条件成立可能性小(为编译器优化)(ret == - EAGAIN)循环
1706  如果此条件成立可能性大(为编译器优化)(ret >= 0)则
1707  __queue_delayed_work(cpu, wq, dwork, delay)
1708  local_irq_restore(flags)
1712  返回:ret
调用者
名称描述
kblockd_mod_delayed_work_on