clock_set_attributes
Function - Set a particular clock's attributes.
SYNOPSIS
kern_return_t clock_set_attributes
(clock_ctrl_t clock_control,
clock_flavor_t flavor,
clock_attr_t attribute,
clock_control attribute_count);
PARAMETERS
- clock_control
-
[in clock-control send right]
The control port for the clock.
- flavor
-
[in scalar]
Type of information to be set. Defined values are:
- CLOCK_ALARM_CURRES
-
The resolution, in nanoseconds, at which clock alarm and
sleep timers are currently serviced. Increasing the current
resolution will have no impact on any pending clock alarms (i.e.
they will go off as originally scheduled). Decreasing the
current resolution will truncate any pending alarms to the
granularity of the new current resolution. This value must be a
multiple of the minimum resolution and not greater than the
maximum resolution of the clock.
- attribute
-
[pointer to in scalar]
New attribute.
- attribute_count
-
[in scalar]
The size of the buffer (in natural-sized units).
DESCRIPTION
The clock_set_attributes function sets attributes of
a clock's operation.
NOTES
The main reason a clock's current resolution would not always equal its
minimum resolution is because the overhead of sustaining the
minimum resolution,
when it is not needed by any existing alarm service client, may be prohibitive
for a given hardware platform and underlying clock device.
RETURN VALUES
Only generic errors apply.
RELATED INFORMATION
Functions:
host_get_clock_control,
clock_set_time,
clock_get_attributes.