flush_work(9)

flush_work9

Wait for a work to finish executing the last queueing instance

Usage

bool flush_work(struct work_struct * work);

Arguments

work

the work to flush

Overview

Wait until work has finished execution. work is guaranteed to be idle on return if it hasn't been requeued since flush started.

Return

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

Releases

3 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7
  3. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.