1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>set_timer_slack</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="ch01s03.html" title="Delaying, scheduling, and timer routines"><link rel="prev" href="API-round-jiffies-up-relative.html" title="round_jiffies_up_relative"><link rel="next" href="API-init-timer-key.html" title="init_timer_key"></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">set_timer_slack</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-round-jiffies-up-relative.html">Prev</a>&#160;</td><th width="60%" align="center">Delaying, scheduling, and timer routines</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-init-timer-key.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-set-timer-slack"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>set_timer_slack &#8212; 
2     set the allowed slack for a timer
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">set_timer_slack </b>(</code></td><td>struct timer_list * <var class="pdparam">timer</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">slack_hz</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1106999676"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>timer</code></em></span></dt><dd><p>
4     the timer to be modified
5    </p></dd><dt><span class="term"><em class="parameter"><code>slack_hz</code></em></span></dt><dd><p>
6     the amount of time (in jiffies) allowed for rounding
7    </p></dd></dl></div></div><div class="refsect1"><a name="idp1107002228"></a><h2>Description</h2><p>
8   Set the amount of time, in jiffies, that a certain timer has
9   in terms of slack. By setting this value, the timer subsystem
10   will schedule the actual timer somewhere between
11   the time <code class="function">mod_timer</code> asks for, and that time plus the slack.
12   </p><p>
13
14   By setting the slack to -1, a percentage of the delay is used
15   instead.
16</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-round-jiffies-up-relative.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch01s03.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-init-timer-key.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">round_jiffies_up_relative</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">init_timer_key</span></td></tr></table></div></body></html>
17