1MOD_DELAYED_WORK_ON(9) Driver Basics MOD_DELAYED_WORK_ON(9)
2
3
4
6 mod_delayed_work_on - modify delay of or queue a delayed work on
7 specific CPU
8
10 bool mod_delayed_work_on(int cpu, struct workqueue_struct * wq,
11 struct delayed_work * dwork,
12 unsigned long delay);
13
15 cpu
16 CPU number to execute work on
17
18 wq
19 workqueue to use
20
21 dwork
22 work to queue
23
24 delay
25 number of jiffies to wait before queueing
26
28 If dwork is idle, equivalent to queue_delayed_work_on; otherwise,
29 modify dwork's timer so that it expires after delay. If delay is zero,
30 work is guaranteed to be scheduled immediately regardless of its
31 current state.
32
33 Returns false if dwork was idle and queued, true if dwork was pending
34 and its timer was modified.
35
36 This function is safe to call from any context including IRQ handler.
37 See try_to_grab_pending for details.
38
40Kernel Hackers Manual 3.10 June 2019 MOD_DELAYED_WORK_ON(9)