'\" t .\" Title: mod_delayed_work_on .\" 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 "MOD_DELAYED_WORK_ON" "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" mod_delayed_work_on \- modify delay of or queue a delayed work on specific CPU .SH "SYNOPSIS" .HP \w'bool\ mod_delayed_work_on('u .BI "bool mod_delayed_work_on(int\ " "cpu" ", struct\ workqueue_struct\ *\ " "wq" ", struct\ delayed_work\ *\ " "dwork" ", unsigned\ long\ " "delay" ");" .SH "ARGUMENTS" .PP \fIcpu\fR .RS 4 CPU number to execute work on .RE .PP \fIwq\fR .RS 4 workqueue to use .RE .PP \fIdwork\fR .RS 4 work to queue .RE .PP \fIdelay\fR .RS 4 number of jiffies to wait before queueing .RE .SH "DESCRIPTION" .PP If \fIdwork\fR is idle, equivalent to \fBqueue_delayed_work_on\fR; otherwise, modify \fIdwork\fR\*(Aqs timer so that it expires after \fIdelay\fR\&. If \fIdelay\fR is zero, \fIwork\fR is guaranteed to be scheduled immediately regardless of its current state\&. .SH "RETURN" .PP \fBfalse\fR if \fIdwork\fR was idle and queued, \fBtrue\fR if \fIdwork\fR was pending and its timer was modified\&. .PP This function is safe to call from any context including IRQ handler\&. See \fBtry_to_grab_pending\fR for details\&. .SH "COPYRIGHT" .br