Scroll to navigation

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

wq

workqueue to flush

DESCRIPTION

This function sleeps until all work items which were queued on entry have finished execution, but it is not livelocked by new incoming ones.

COPYRIGHT

January 2017 Kernel Hackers Manual 4.8.