1 <h2>host_get_clock_service
</h2>
4 <strong>Function
</strong> - Return a send right to a kernel clock's service port.
7 <strong>kern_return_t host_get_clock_service
</strong>
8 <strong>(host_t
</strong> <var>host
</var>,
9 <strong>clock_id_t
</strong> <var>id
</var>,
10 <strong>clock_t
</strong> <var>clock_name
</var><strong>);
</strong>
17 [in host-name send right]
18 The name (or control) port for the host
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_name
</var>
47 [out clock-name send right]
48 Name port for the clock.
52 The
<strong>host_get_clock_service
</strong> function returns a send
53 right to the name port for a
54 kernel clock object. This right is used to get the time and
56 clock and to set clock alarms.
57 <h3>RETURN VALUES
</h3>
59 Only generic errors apply.
60 <h3>RELATED INFORMATION
</h3>
63 <a href=
"clock_get_time.html"><strong>clock_get_time
</strong></a>,
64 <a href=
"clock_get_attributes.html"><strong>clock_get_attributes
</strong></a>,
65 <a href=
"clock_map_time.html"><strong>clock_map_time
</strong></a>,
66 <a href=
"clock_sleep.html"><strong>clock_sleep
</strong></a>,
67 <a href=
"clock_alarm.html"><strong>clock_alarm
</strong></a>,
68 <a href=
"host_get_clock_control.html"><strong>host_get_clock_control
</strong></a>.