1*e13b1fa5SApple OSS Distributions<h2>clock_set_attributes</h2>
2*e13b1fa5SApple OSS Distributions<hr>
3*e13b1fa5SApple OSS Distributions<p>
4*e13b1fa5SApple OSS Distributions<strong>Function</strong> - Set a particular clock's attributes.
5*e13b1fa5SApple OSS Distributions<h3>SYNOPSIS</h3>
6*e13b1fa5SApple OSS Distributions<pre>
7*e13b1fa5SApple OSS Distributions<strong>kern_return_t   clock_set_attributes</strong>
8*e13b1fa5SApple OSS Distributions                <strong>(clock_ctrl_t</strong>                     <var>clock_control</var>,
9*e13b1fa5SApple OSS Distributions                 <strong>clock_flavor_t</strong>                          <var>flavor</var>,
10*e13b1fa5SApple OSS Distributions                 <strong>clock_attr_t</strong>                         <var>attribute</var>,
11*e13b1fa5SApple OSS Distributions                 <strong>clock_control</strong>                  <var>attribute_count</var><strong>);</strong>
12*e13b1fa5SApple OSS Distributions</pre>
13*e13b1fa5SApple OSS Distributions<h3>PARAMETERS</h3>
14*e13b1fa5SApple OSS Distributions<dl>
15*e13b1fa5SApple OSS Distributions<p>
16*e13b1fa5SApple OSS Distributions<dt> <var>clock_control</var>
17*e13b1fa5SApple OSS Distributions<dd>
18*e13b1fa5SApple OSS Distributions[in clock-control send right]
19*e13b1fa5SApple OSS DistributionsThe control port for the clock.
20*e13b1fa5SApple OSS Distributions<p>
21*e13b1fa5SApple OSS Distributions<dt> <var>flavor</var>
22*e13b1fa5SApple OSS Distributions<dd>
23*e13b1fa5SApple OSS Distributions[in scalar]
24*e13b1fa5SApple OSS DistributionsType of information to be set.  Defined values are:
25*e13b1fa5SApple OSS Distributions<dl>
26*e13b1fa5SApple OSS Distributions<p>
27*e13b1fa5SApple OSS Distributions<dt> <strong>CLOCK_ALARM_CURRES</strong>
28*e13b1fa5SApple OSS Distributions<dd>
29*e13b1fa5SApple OSS DistributionsThe resolution, in nanoseconds, at which clock alarm and
30*e13b1fa5SApple OSS Distributionssleep timers are currently serviced.  Increasing the current
31*e13b1fa5SApple OSS Distributionsresolution will have no impact on any pending clock alarms (i.e.
32*e13b1fa5SApple OSS Distributionsthey will go off as originally scheduled).  Decreasing the
33*e13b1fa5SApple OSS Distributionscurrent resolution will truncate any pending alarms to the
34*e13b1fa5SApple OSS Distributionsgranularity of the new current resolution.  This value must be a
35*e13b1fa5SApple OSS Distributionsmultiple of the minimum resolution and not greater than the
36*e13b1fa5SApple OSS Distributionsmaximum resolution of the clock.
37*e13b1fa5SApple OSS Distributions</dl>
38*e13b1fa5SApple OSS Distributions<p>
39*e13b1fa5SApple OSS Distributions<dt> <var>attribute</var>
40*e13b1fa5SApple OSS Distributions<dd>
41*e13b1fa5SApple OSS Distributions[pointer to in scalar]
42*e13b1fa5SApple OSS DistributionsNew attribute.
43*e13b1fa5SApple OSS Distributions<p>
44*e13b1fa5SApple OSS Distributions<dt> <var>attribute_count</var>
45*e13b1fa5SApple OSS Distributions<dd>
46*e13b1fa5SApple OSS Distributions[in scalar]
47*e13b1fa5SApple OSS DistributionsThe size of the buffer (in natural-sized units).
48*e13b1fa5SApple OSS Distributions</dl>
49*e13b1fa5SApple OSS Distributions<h3>DESCRIPTION</h3>
50*e13b1fa5SApple OSS Distributions<p>
51*e13b1fa5SApple OSS DistributionsThe <strong>clock_set_attributes</strong> function sets attributes of
52*e13b1fa5SApple OSS Distributionsa clock's operation.
53*e13b1fa5SApple OSS Distributions<h3>NOTES</h3>
54*e13b1fa5SApple OSS Distributions<p>
55*e13b1fa5SApple OSS DistributionsThe main reason a clock's current resolution would not always equal its
56*e13b1fa5SApple OSS Distributionsminimum resolution is because the overhead of sustaining the
57*e13b1fa5SApple OSS Distributionsminimum resolution,
58*e13b1fa5SApple OSS Distributionswhen it is not needed by any existing alarm service client, may be prohibitive
59*e13b1fa5SApple OSS Distributionsfor a given hardware platform and underlying clock device.
60*e13b1fa5SApple OSS Distributions<h3>RETURN VALUES</h3>
61*e13b1fa5SApple OSS Distributions<p>
62*e13b1fa5SApple OSS DistributionsOnly generic errors apply.
63*e13b1fa5SApple OSS Distributions<h3>RELATED INFORMATION</h3>
64*e13b1fa5SApple OSS Distributions<p>
65*e13b1fa5SApple OSS DistributionsFunctions:
66*e13b1fa5SApple OSS Distributions<a href="host_get_clock_control.html"><strong>host_get_clock_control</strong></a>,
67*e13b1fa5SApple OSS Distributions<a href="clock_set_time.html"><strong>clock_set_time</strong></a>,
68*e13b1fa5SApple OSS Distributions<a href="clock_get_attributes.html"><strong>clock_get_attributes</strong></a>.
69