'\" t .\" Title: cancel_delayed_work .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "CANCEL_DELAYED_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" cancel_delayed_work \- cancel a delayed work .SH "SYNOPSIS" .HP \w'bool\ cancel_delayed_work('u .BI "bool cancel_delayed_work(struct\ delayed_work\ *\ " "dwork" ");" .SH "ARGUMENTS" .PP \fIdwork\fR .RS 4 delayed_work to cancel .RE .SH "DESCRIPTION" .PP Kill off a pending delayed_work\&. .SH "RETURN" .PP \fBtrue\fR if \fIdwork\fR was pending and canceled; \fBfalse\fR if it wasn\*(Aqt pending\&. .SH "NOTE" .PP The work callback function may still be running on return, unless it returns \fBtrue\fR and the work doesn\*(Aqt re\-arm itself\&. Explicitly flush or use \fBcancel_delayed_work_sync\fR to wait on it\&. .PP This function is safe to call from any context including IRQ handler\&. .SH "COPYRIGHT" .br