1 <h2>clock_set_attributes
</h2>
4 <strong>Function
</strong> - Set a particular clock's attributes.
7 <strong>kern_return_t clock_set_attributes
</strong>
8 <strong>(clock_ctrl_t
</strong> <var>clock_control
</var>,
9 <strong>clock_flavor_t
</strong> <var>flavor
</var>,
10 <strong>clock_attr_t
</strong> <var>attribute
</var>,
11 <strong>clock_control
</strong> <var>attribute_count
</var><strong>);
</strong>
16 <dt> <var>clock_control
</var>
18 [in clock-control send right]
19 The control port for the clock.
21 <dt> <var>flavor
</var>
24 Type of information to be set. Defined values are:
27 <dt> <strong>CLOCK_ALARM_CURRES
</strong>
29 The resolution, in nanoseconds, at which clock alarm and
30 sleep timers are currently serviced. Increasing the current
31 resolution will have no impact on any pending clock alarms (i.e.
32 they will go off as originally scheduled). Decreasing the
33 current resolution will truncate any pending alarms to the
34 granularity of the new current resolution. This value must be a
35 multiple of the minimum resolution and not greater than the
36 maximum resolution of the clock.
39 <dt> <var>attribute
</var>
41 [pointer to in scalar]
44 <dt> <var>attribute_count
</var>
47 The size of the buffer (in natural-sized units).
51 The
<strong>clock_set_attributes
</strong> function sets attributes of
55 The main reason a clock's current resolution would not always equal its
56 minimum resolution is because the overhead of sustaining the
58 when it is not needed by any existing alarm service client, may be prohibitive
59 for a given hardware platform and underlying clock device.
60 <h3>RETURN VALUES
</h3>
62 Only generic errors apply.
63 <h3>RELATED INFORMATION
</h3>
66 <a href=
"host_get_clock_control.html"><strong>host_get_clock_control
</strong></a>,
67 <a href=
"clock_set_time.html"><strong>clock_set_time
</strong></a>,
68 <a href=
"clock_get_attributes.html"><strong>clock_get_attributes
</strong></a>.