'\" t .\" Title: flush_work .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "FLUSH_WORK" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" flush_work \- wait for a work to finish executing the last queueing instance .SH "SYNOPSIS" .HP \w'bool\ flush_work('u .BI "bool flush_work(struct\ work_struct\ *\ " "work" ");" .SH "ARGUMENTS" .PP \fIwork\fR .RS 4 the work to flush .RE .SH "DESCRIPTION" .PP Wait until \fIwork\fR has finished execution\&. \fIwork\fR is guaranteed to be idle on return if it hasn\*(Aqt been requeued since flush started\&. .SH "RETURN" .PP \fBtrue\fR if \fBflush_work\fR waited for the work to finish execution, \fBfalse\fR if it was already idle\&. .SH "COPYRIGHT" .br