'\" t .\" Title: mod_timer_pinned .\" 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 "MOD_TIMER_PINNED" "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" mod_timer_pinned \- modify a timer\*(Aqs timeout .SH "SYNOPSIS" .HP \w'int\ mod_timer_pinned('u .BI "int mod_timer_pinned(struct\ timer_list\ *\ " "timer" ", unsigned\ long\ " "expires" ");" .SH "ARGUMENTS" .PP \fItimer\fR .RS 4 the timer to be modified .RE .PP \fIexpires\fR .RS 4 new timeout in jiffies .RE .SH "DESCRIPTION" .PP \fBmod_timer_pinned\fR is a way to update the expire field of an active timer (if the timer is inactive it will be activated) and to ensure that the timer is scheduled on the current CPU\&. .PP Note that this does not prevent the timer from being migrated when the current CPU goes offline\&. If this is a problem for you, use CPU\-hotplug notifiers to handle it correctly, for example, cancelling the timer when the corresponding CPU goes offline\&. .PP mod_timer_pinned(timer, expires) is equivalent to: .PP del_timer(timer); timer\->expires = expires; add_timer(timer); .SH "COPYRIGHT" .br