'\" t .\" Title: add_timer .\" 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 "ADD_TIMER" "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" add_timer \- start a timer .SH "SYNOPSIS" .HP \w'void\ add_timer('u .BI "void add_timer(struct\ timer_list\ *\ " "timer" ");" .SH "ARGUMENTS" .PP \fItimer\fR .RS 4 the timer to be added .RE .SH "DESCRIPTION" .PP The kernel will do a \->function(\->data) callback from the timer interrupt at the \->expires point in the future\&. The current time is \*(Aqjiffies\*(Aq\&. .PP The timer\*(Aqs \->expires, \->function (and if the handler uses it, \->data) fields must be set prior calling this function\&. .PP Timers with an \->expires field in the past will be executed in the next timer tick\&. .SH "COPYRIGHT" .br