1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><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-start.html" title="hrtimer_start"></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> </td><th width="60%" align="center">High-resolution timers</th><td width="20%" align="right"> <a accesskey="n" href="API-hrtimer-start.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 — 
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 (* get_time) (void);
10  ktime_t offset;
11};  </pre></div><div class="refsect1"><a name="id-1.3.6.11.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">cpu_base</span></dt><dd><p>
12   per cpu clock base
13      </p></dd><dt><span class="term">index</span></dt><dd><p>
14   clock type index for per_cpu support when moving a
15   timer to a base on another cpu.
16      </p></dd><dt><span class="term">clockid</span></dt><dd><p>
17   clock id for per_cpu support
18      </p></dd><dt><span class="term">active</span></dt><dd><p>
19   red black tree root node for the active timers
20      </p></dd><dt><span class="term">get_time</span></dt><dd><p>
21   function to retrieve the current time of the clock
22      </p></dd><dt><span class="term">offset</span></dt><dd><p>
23   offset of this clock to the monotonic base
24      </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> </td><td width="20%" align="center"><a accesskey="u" href="ch01s05.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-hrtimer-start.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct hrtimer_sleeper</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">hrtimer_start</span></td></tr></table></div></body></html>
25