<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><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.76.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-ktime-add-ns.html" title="ktime_add_ns" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>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-ktime-add-ns.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="struct hrtimer_clock_base"><a id="API-struct-hrtimer-clock-base"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct hrtimer_clock_base — the timer base for a specific clock </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting"> struct hrtimer_clock_base { struct hrtimer_cpu_base * cpu_base; clockid_t index; struct timerqueue_head active; ktime_t resolution; ktime_t (* get_time) (void); ktime_t softirq_time; #ifdef CONFIG_HIGH_RES_TIMERS ktime_t offset; #endif }; </pre></div><div class="refsect1" title="Members"><a id="id3055070"></a><h2>Members</h2><div class="variablelist"><dl><dt><span class="term">cpu_base</span></dt><dd><p> per cpu clock base </p></dd><dt><span class="term">index</span></dt><dd><p> clock type index for per_cpu support when moving a timer to a base on another cpu. </p></dd><dt><span class="term">active</span></dt><dd><p> red black tree root node for the active timers </p></dd><dt><span class="term">resolution</span></dt><dd><p> the resolution of the clock, in nanoseconds </p></dd><dt><span class="term">get_time</span></dt><dd><p> function to retrieve the current time of the clock </p></dd><dt><span class="term">softirq_time</span></dt><dd><p> the time when running the hrtimer queue in the softirq </p></dd><dt><span class="term">offset</span></dt><dd><p> offset of this clock to the monotonic base </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-ktime-add-ns.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>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>ktime_add_ns</span></td></tr></table></div></body></html>