1FLUSH_WORKQUEUE(9) Driver Basics FLUSH_WORKQUEUE(9)
2
3
4
6 flush_workqueue - ensure that any scheduled work has run to completion.
7
9 void flush_workqueue(struct workqueue_struct * wq);
10
12 wq
13 workqueue to flush
14
16 Forces execution of the workqueue and blocks until its completion. This
17 is typically used in driver shutdown handlers.
18
19 We sleep until all works which were queued on entry have been handled,
20 but we are not livelocked by new incoming ones.
21
22 This function used to run the workqueues itself. Now we just wait for
23 the helper threads to do it.
24
26Kernel Hackers Manual 2.6. November 2011 FLUSH_WORKQUEUE(9)