函数逻辑报告

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

函数名称:queue_delayed_work_on - queue work on specific CPU after delay*@cpu: CPU number to execute work on*@wq: workqueue to use*@dwork: work to queue*@delay: number of jiffies to wait before queueing

函数原型:bool queue_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
1661  work等于work
1662  bool ret = false
1666  local_irq_save(flags)
1668  如果非st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).
1669  __queue_delayed_work(cpu, wq, dwork, delay)
1670  ret = true
1673  local_irq_restore(flags)
1674  返回:ret
调用者
名称描述
queue_delayed_work启动延迟工作队列
schedule_delayed_work_onschedule_delayed_work_on - queue work in global workqueue on CPU after delay*@cpu: cpu to use*@dwork: job to be done*@delay: number of jiffies to wait* After waiting for a given time this puts a job in the kernel-global* workqueue on the specified CPU.