1 <h2>host_get_clock_control
</h2>
4 <strong>Function
</strong> - Return a send right to a kernel clock's control port.
7 <strong>kern_return_t host_get_clock_control
</strong>
8 <strong>(host_priv_t
</strong> <var>host_priv
</var>,
9 <strong>clock_id_t
</strong> <var>id
</var>,
10 <strong>clock_ctrl_t
</strong> <var>clock_control
</var><strong>);
</strong>
15 <dt> <var>host_priv
</var>
17 [in host-control send right]
18 The control port for the host owning the
24 The identification of the desired kernel clock. These values
25 are defined in \*L
<mach/clock_types.h
>\*O. Although an implementation
26 may define additional values, the following values are always defined
27 (although only the REALTIME clock is required to be implemented):
30 <dt> <strong>REALTIME_CLOCK
</strong>
32 A moderate resolution clock service that (typically) tracks
33 time since the system last boot.
35 <dt> <strong>BATTERY_CLOCK
</strong>
37 A (typically) low resolution clock (to the second) that
38 survives power failures or service outages.
40 <dt> <strong>HIGHRES_CLOCK
</strong>
42 A high resolution clock.
45 <dt> <var>clock_control
</var>
47 [out clock-control send right]
48 Control port for the clock.
52 The
<strong>host_get_clock_control
</strong> function returns a send
53 right to the control port for
54 a kernel clock object. This right is used to set the clock's
56 <h3>RETURN VALUES
</h3>
58 Only generic errors apply.
59 <h3>RELATED INFORMATION
</h3>
62 <a href=
"clock_set_time.html"><strong>clock_set_time
</strong></a>,
63 <a href=
"clock_set_attributes.html"><strong>clock_set_attributes
</strong></a>,
64 <a href=
"host_get_clock_service.html"><strong>host_get_clock_service
</strong></a>.