Query: flush_workqueue
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FLUSH_WORKQUEUE(9) Driver Basics FLUSH_WORKQUEUE(9)NAMEflush_workqueue - ensure that any scheduled work has run to completion.SYNOPSISvoid flush_workqueue(struct workqueue_struct * wq);ARGUMENTSwq workqueue to flushDESCRIPTIONForces 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. This function used to run the workqueues itself. Now we just wait for the helper threads to do it.COPYRIGHTKernel Hackers Manual 2.6. July 2010 FLUSH_WORKQUEUE(9)