MOD_DELAYED_WORK_ON(9) | Driver Basics | MOD_DELAYED_WORK_ON(9) |
NAME¶
mod_delayed_work_on - modify delay of or queue a delayed work on specific CPU
SYNOPSIS¶
bool mod_delayed_work_on(int cpu, struct workqueue_struct * wq, struct delayed_work * dwork, unsigned long delay);
ARGUMENTS¶
cpu
wq
dwork
delay
DESCRIPTION¶
If dwork is idle, equivalent to queue_delayed_work_on; otherwise, modify dwork's timer so that it expires after delay. If delay is zero, work is guaranteed to be scheduled immediately regardless of its current state.
RETURN¶
false if dwork was idle and queued, true if dwork was pending and its timer was modified.
This function is safe to call from any context including IRQ handler. See try_to_grab_pending for details.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |