'\" t .\" Title: struct hrtimer .\" 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 "STRUCT HRTIMER" "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" struct_hrtimer \- the basic hrtimer structure .SH "SYNOPSIS" .sp .nf struct hrtimer { struct timerqueue_node node; ktime_t _softexpires; enum hrtimer_restart (* function) (struct hrtimer *); struct hrtimer_clock_base * base; unsigned long state; #ifdef CONFIG_TIMER_STATS int start_pid; void * start_site; char start_comm[16]; #endif }; .fi .SH "MEMBERS" .PP node .RS 4 timerqueue node, which also manages node\&.expires, the absolute expiry time in the hrtimers internal representation\&. The time is related to the clock on which the timer is based\&. Is setup by adding slack to the _softexpires value\&. For non range timers identical to _softexpires\&. .RE .PP _softexpires .RS 4 the absolute earliest expiry time of the hrtimer\&. The time which was given as expiry time when the timer was armed\&. .RE .PP function .RS 4 timer expiry callback function .RE .PP base .RS 4 pointer to the timer base (per cpu and per clock) .RE .PP state .RS 4 state information (See bit values above) .RE .PP start_pid .RS 4 timer statistics field to store the pid of the task which started the timer .RE .PP start_site .RS 4 timer statistics field to store the site where the timer was started .RE .PP start_comm[16] .RS 4 timer statistics field to store the name of the process which started the timer .RE .SH "DESCRIPTION" .PP The hrtimer structure must be initialized by \fBhrtimer_init\fR .SH "COPYRIGHT" .br