X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/743b15655a24ee3fe9f458f383003e011db0558f..13fec9890cf095cc781fdf7b8917cb03bf32dd4c:/osfmk/man/clock_set_attributes.html diff --git a/osfmk/man/clock_set_attributes.html b/osfmk/man/clock_set_attributes.html index ecfec911b..6b2fb1d00 100755 --- a/osfmk/man/clock_set_attributes.html +++ b/osfmk/man/clock_set_attributes.html @@ -1 +1,68 @@ -

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. \ No newline at end of file +

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.