table of contents
other versions
- wheezy 3.2.78-1
FLUSH_WORKQUEUE(9) | Driver Basics | FLUSH_WORKQUEUE(9) |
NAME¶
flush_workqueue - ensure that any scheduled work has run to completion.SYNOPSIS¶
void
flush_workqueue(struct workqueue_struct * wq);
ARGUMENTS¶
wqworkqueue to flush
DESCRIPTION¶
Forces execution of the workqueue and blocks until its completion. This is typically used in driver shutdown handlers. We sleep until all works which were queued on entry have been handled, but we are not livelocked by new incoming ones.COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |