1 <h2>clock_map_time
</h2>
4 <strong>Function
</strong> - Return a memory object that maps a clock.
7 <strong>kern_return_t clock_map_time
</strong>
8 <strong>(clock_t
</strong> <var>clock_name
</var>,
9 <strong>memory_object_t
</strong> <var>clock_memory
</var><strong>);
</strong>
14 <dt> <var>clock_name
</var>
16 [in clock-name send right]
17 The name (or control) port for the clock.
19 <dt> <var>clock_memory
</var>
21 [out memory-object-representative send right]
23 memory object representative.
27 The
<strong>clock_map_time
</strong> function returns a memory object representative port
28 representing read access to a memory object that contains (at offset zero) a
29 mapped version of the clock time (structure
<strong>mapped_tvalspec
</strong>).
30 The returned right is suitable as an argument for
<strong>vm_map
</strong>.
33 Not all clocks provide this service, but the REALTIME clock must.
34 <h3>RETURN VALUES
</h3>
37 <dt> <strong>KERN_FAILURE
</strong>
39 The specified clock does not provide this service.
41 <h3>RELATED INFORMATION
</h3>
44 <a href=
"host_get_clock_service.html"><strong>host_get_clock_service
</strong></a>,
45 <a href=
"clock_get_attributes.html"><strong>clock_get_attributes
</strong></a>,
46 <a href=
"clock_get_time.html"><strong>clock_get_time
</strong></a>,
47 <a href=
"clock_sleep.html"><strong>clock_sleep
</strong></a>,
48 <a href=
"clock_alarm.html"><strong>clock_alarm
</strong></a>.
51 <a href=
"mapped_tvalspec.html"><strong>mapped_tvalspec
</strong></a>.