Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:bool queue_delayed_work_on(int cpu, struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay)

Type:bool

Parameter:

TypeParameterName
intcpu
struct workqueue_struct *wq
struct delayed_work *dwork
unsigned longdelay
1661  work = work
1662  bool ret = false
1666  local_irq_save(flags)
1668  If Not 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). Then
1669  __queue_delayed_work(cpu, wq, dwork, delay)
1670  ret = true
1673  local_irq_restore(flags)
1674  Return ret
Caller
NameDescribe
queue_delayed_workqueue_delayed_work - queue work on a workqueue after delay*@wq: workqueue to use*@dwork: delayable work to queue*@delay: number of jiffies to wait before queueing* Equivalent to queue_delayed_work_on() but tries to use the local CPU.
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.