1CANCEL_DELAYED_WORK(9) Driver Basics CANCEL_DELAYED_WORK(9)
2
3
4
6 cancel_delayed_work - cancel a delayed work
7
9 bool cancel_delayed_work(struct delayed_work * dwork);
10
12 dwork
13 delayed_work to cancel
14
16 Kill off a pending delayed_work. Returns true if dwork was pending and
17 canceled; false if wasn't pending. Note that the work callback function
18 may still be running on return, unless it returns true and the work
19 doesn't re-arm itself. Explicitly flush or use cancel_delayed_work_sync
20 to wait on it.
21
22 This function is safe to call from any context including IRQ handler.
23
25Kernel Hackers Manual 3.10 June 2019 CANCEL_DELAYED_WORK(9)