'\" t .\" Title: schedule_work .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SCHEDULE_WORK" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" schedule_work \- put work task in global workqueue .SH "SYNOPSIS" .HP \w'bool\ schedule_work('u .BI "bool schedule_work(struct\ work_struct\ *\ " "work" ");" .SH "ARGUMENTS" .PP \fIwork\fR .RS 4 job to be done .RE .SH "DESCRIPTION" .PP Returns \fBfalse\fR if \fIwork\fR was already on the kernel\-global workqueue and \fBtrue\fR otherwise\&. .PP This puts a job in the kernel\-global workqueue if it was not already queued and leaves it in the same position on the kernel\-global workqueue otherwise\&. .SH "COPYRIGHT" .br