FLUSH_WORK_SYNC

Section: Driver Basics (9)
Updated: February 2011
Index Return to Main Contents
 

NAME

flush_work_sync - wait until a work has finished execution  

SYNOPSIS

bool flush_work_sync(struct work_struct * work);
 

ARGUMENTS

work

the work to flush
 

DESCRIPTION

Wait until work has finished execution. On return, it's guaranteed that all queueing instances of work which happened before this function is called are finished. In other words, if work hasn't been requeued since this function was called, work is guaranteed to be idle on return.  

RETURNS

true if flush_work_sync waited for the work to finish execution, false if it was already idle.  

COPYRIGHT