]>
Commit | Line | Data |
---|---|---|
9bccf70c | 1 | <h2>host_get_clock_service</h2>\r<hr>\r<p>\r<strong>Function</strong> - Return a send right to a kernel clock's service port.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t host_get_clock_service</strong>\r <strong>(host_t</strong> <var>host</var>,\r <strong>clock_id_t</strong> <var>id</var>,\r <strong>clock_t</strong> <var>clock_name</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>host</var> \r<dd>\r[in host-name send right]\rThe name (or control) port for the host\rowning the clock.\r<p>\r<dt> <var>id</var> \r<dd>\r[in scalar]\rThe identification of the desired kernel clock. These values \rare defined in \*L<mach/clock_types.h>\*O. Although an implementation \rmay define additional values, the following values are always defined \r(although only the REALTIME clock is required to be implemented):\r<dl>\r<p>\r<dt> <strong>REALTIME_CLOCK</strong>\r<dd>\rA moderate resolution clock service that (typically) tracks \rtime since the system last boot.\r<p>\r<dt> <strong>BATTERY_CLOCK</strong>\r<dd>\rA (typically) low resolution clock (to the second) that\rsurvives power failures or service outages.\r<p>\r<dt> <strong>HIGHRES_CLOCK</strong>\r<dd>\rA high resolution clock.\r</dl>\r<p>\r<dt> <var>clock_name</var> \r<dd>\r[out clock-name send right]\rName port for the clock.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>host_get_clock_service</strong> function returns a send\rright to the name port for a \rkernel clock object. This right is used to get the time and\rresolutions of the \rclock and to set clock alarms.\r<h3>RETURN VALUES</h3>\r<p>\rOnly generic errors apply.\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="clock_get_time.html"><strong>clock_get_time</strong></a>,\r<a href="clock_get_attributes.html"><strong>clock_get_attributes</strong></a>,\r<a href="clock_map_time.html"><strong>clock_map_time</strong></a>,\r<a href="clock_sleep.html"><strong>clock_sleep</strong></a>,\r<a href="clock_alarm.html"><strong>clock_alarm</strong></a>,\r<a href="host_get_clock_control.html"><strong>host_get_clock_control</strong></a>.\r |