1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct hrtimer_clock_base</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="ch01s05.html" title="High-resolution timers"><link rel="prev" href="API-struct-hrtimer-sleeper.html" title="struct hrtimer_sleeper"><link rel="next" href="API-hrtimer-forward.html" title="hrtimer_forward"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct hrtimer_clock_base</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-hrtimer-sleeper.html">Prev</a>&#160;</td><th width="60%" align="center">High-resolution timers</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-hrtimer-forward.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-hrtimer-clock-base"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct hrtimer_clock_base &#8212; 
2     the timer base for a specific clock
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct hrtimer_clock_base {
5  struct hrtimer_cpu_base * cpu_base;
6  int index;
7  clockid_t clockid;
8  struct timerqueue_head active;
9  ktime_t resolution;
10  ktime_t (* get_time) (void);
11  ktime_t softirq_time;
12  ktime_t offset;
13};  </pre></div><div class="refsect1"><a name="idp1107561428"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">cpu_base</span></dt><dd><p>
14   per cpu clock base
15      </p></dd><dt><span class="term">index</span></dt><dd><p>
16   clock type index for per_cpu support when moving a
17   timer to a base on another cpu.
18      </p></dd><dt><span class="term">clockid</span></dt><dd><p>
19   clock id for per_cpu support
20      </p></dd><dt><span class="term">active</span></dt><dd><p>
21   red black tree root node for the active timers
22      </p></dd><dt><span class="term">resolution</span></dt><dd><p>
23   the resolution of the clock, in nanoseconds
24      </p></dd><dt><span class="term">get_time</span></dt><dd><p>
25   function to retrieve the current time of the clock
26      </p></dd><dt><span class="term">softirq_time</span></dt><dd><p>
27   the time when running the hrtimer queue in the softirq
28      </p></dd><dt><span class="term">offset</span></dt><dd><p>
29   offset of this clock to the monotonic base
30      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-hrtimer-sleeper.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch01s05.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-hrtimer-forward.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct hrtimer_sleeper</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">hrtimer_forward</span></td></tr></table></div></body></html>
31