'\" t .\" Title: queue_kthread_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 "QUEUE_KTHREAD_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" queue_kthread_work \- queue a kthread_work .SH "SYNOPSIS" .HP \w'bool\ queue_kthread_work('u .BI "bool queue_kthread_work(struct\ kthread_worker\ *\ " "worker" ", struct\ kthread_work\ *\ " "work" ");" .SH "ARGUMENTS" .PP \fIworker\fR .RS 4 target kthread_worker .RE .PP \fIwork\fR .RS 4 kthread_work to queue .RE .SH "DESCRIPTION" .PP Queue \fIwork\fR to work processor \fItask\fR for async execution\&. \fItask\fR must have been created with \fBkthread_worker_create\fR\&. Returns \fBtrue\fR if \fIwork\fR was successfully queued, \fBfalse\fR if it was already pending\&. .SH "COPYRIGHT" .br