'\" t .\" Title: work_busy .\" 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 "WORK_BUSY" "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" work_busy \- test whether a work is currently pending or running .SH "SYNOPSIS" .HP \w'unsigned\ int\ work_busy('u .BI "unsigned int work_busy(struct\ work_struct\ *\ " "work" ");" .SH "ARGUMENTS" .PP \fIwork\fR .RS 4 the work to be tested .RE .SH "DESCRIPTION" .PP Test whether \fIwork\fR is currently pending or running\&. There is no synchronization around this function and the test result is unreliable and only useful as advisory hints or for debugging\&. .SH "RETURN" .PP OR\*(Aqd bitmask of WORK_BUSY_* bits\&. .SH "COPYRIGHT" .br