Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__queue_delayed_work

Proto:static void __queue_delayed_work(int cpu, struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay)

Type:void

Parameter:

TypeParameterName
intcpu
struct workqueue_struct *wq
struct delayed_work *dwork
unsigned longdelay
1618  timer = timer
1619  work = work
1621  WARN_ON_ONCE(!wq)
1622  WARN_ON_ONCE(function != delayed_work_timer_fn)
1623  WARN_ON_ONCE(mer_pending - is a timer pending?*@timer: the timer in question* timer_pending will tell whether a given timer is currently pending,* or not. Callers must ensure serialization wrt. other operations done* to this timer, eg)
1624  WARN_ON_ONCE(!list_empty - tests whether a list is empty*@head: the list to test.)
1632  If Not delay Then
1633  __queue_work(cpu, wq, & work)
1634  Return
1637  target workqueue and CPU ->timer uses to queue ->work = wq
1638  cpu = cpu
1639  expires = jiffies + delay
1641  If Value for the false possibility is greater at compile time(cpu != WORK_CPU_UNBOUND) Then add_timer_on(timer, cpu)
1643  Else add_timer(timer)
Caller
NameDescribe
queue_delayed_work_onqueue_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
mod_delayed_work_onmod_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