]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/man/host_get_clock_control.html
xnu-792.6.76.tar.gz
[apple/xnu.git] / osfmk / man / host_get_clock_control.html
index 4d47043bb26598550b8793f8814a01ea191fe62d..42e1e00a9e5e4a5466bd0c5efef562bbcf669b59 100755 (executable)
@@ -1 +1,64 @@
-<h2>host_get_clock_control</h2>\r<hr>\r<p>\r<strong>Function</strong> - Return a send right to a kernel clock's control port.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t   host_get_clock_control</strong>\r                <strong>(host_priv_t</strong>                          <var>host_priv</var>,\r                 <strong>clock_id_t</strong>                                  <var>id</var>,\r                 <strong>clock_ctrl_t</strong>                     <var>clock_control</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>host_priv</var> \r<dd>\r[in host-control send right]\rThe control port for the host owning the \rclock.\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_control</var> \r<dd>\r[out clock-control send right]\rControl port for the clock.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>host_get_clock_control</strong> function returns a send\rright to the control port for \ra kernel clock object.  This right is used to set the clock's\rresolution and time.\r<h3>RETURN VALUES</h3>\r<p>\rOnly generic errors apply.\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="clock_set_time.html"><strong>clock_set_time</strong></a>,\r<a href="clock_set_attributes.html"><strong>clock_set_attributes</strong></a>,\r<a href="host_get_clock_service.html"><strong>host_get_clock_service</strong></a>.\r
\ No newline at end of file
+<h2>host_get_clock_control</h2>
+<hr>
+<p>
+<strong>Function</strong> - Return a send right to a kernel clock's control port.
+<h3>SYNOPSIS</h3>
+<pre>
+<strong>kern_return_t   host_get_clock_control</strong>
+                <strong>(host_priv_t</strong>                          <var>host_priv</var>,
+                 <strong>clock_id_t</strong>                                  <var>id</var>,
+                 <strong>clock_ctrl_t</strong>                     <var>clock_control</var><strong>);</strong>
+</pre>
+<h3>PARAMETERS</h3>
+<dl>
+<p>
+<dt> <var>host_priv</var> 
+<dd>
+[in host-control send right]
+The control port for the host owning the 
+clock.
+<p>
+<dt> <var>id</var> 
+<dd>
+[in scalar]
+The identification of the desired kernel clock.  These values 
+are defined in \*L<mach/clock_types.h>\*O.  Although an implementation 
+may define additional values, the following values are always defined 
+(although only the REALTIME clock is required to be implemented):
+<dl>
+<p>
+<dt> <strong>REALTIME_CLOCK</strong>
+<dd>
+A moderate resolution clock service that (typically) tracks 
+time since the system last boot.
+<p>
+<dt> <strong>BATTERY_CLOCK</strong>
+<dd>
+A (typically) low resolution clock (to the second) that
+survives power failures or service outages.
+<p>
+<dt> <strong>HIGHRES_CLOCK</strong>
+<dd>
+A high resolution clock.
+</dl>
+<p>
+<dt> <var>clock_control</var> 
+<dd>
+[out clock-control send right]
+Control port for the clock.
+</dl>
+<h3>DESCRIPTION</h3>
+<p>
+The <strong>host_get_clock_control</strong> function returns a send
+right to the control port for 
+a kernel clock object.  This right is used to set the clock's
+resolution and time.
+<h3>RETURN VALUES</h3>
+<p>
+Only generic errors apply.
+<h3>RELATED INFORMATION</h3>
+<p>
+Functions:
+<a href="clock_set_time.html"><strong>clock_set_time</strong></a>,
+<a href="clock_set_attributes.html"><strong>clock_set_attributes</strong></a>,
+<a href="host_get_clock_service.html"><strong>host_get_clock_service</strong></a>.