forked from apple/darwin-xnu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclock_map_time.html
51 lines (51 loc) · 1.66 KB
/
clock_map_time.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<h2>clock_map_time</h2>
<hr>
<p>
<strong>Function</strong> - Return a memory object that maps a clock.
<h3>SYNOPSIS</h3>
<pre>
<strong>kern_return_t clock_map_time</strong>
<strong>(clock_t</strong> <var>clock_name</var>,
<strong>memory_object_t</strong> <var>clock_memory</var><strong>);</strong>
</pre>
<h3>PARAMETERS</h3>
<dl>
<p>
<dt> <var>clock_name</var>
<dd>
[in clock-name send right]
The name (or control) port for the clock.
<p>
<dt> <var>clock_memory</var>
<dd>
[out memory-object-representative send right]
Mapped clock time
memory object representative.
</dl>
<h3>DESCRIPTION</h3>
<p>
The <strong>clock_map_time</strong> function returns a memory object representative port
representing read access to a memory object that contains (at offset zero) a
mapped version of the clock time (structure <strong>mapped_tvalspec</strong>).
The returned right is suitable as an argument for <strong>vm_map</strong>.
<h3>NOTES</h3>
<p>
Not all clocks provide this service, but the REALTIME clock must.
<h3>RETURN VALUES</h3>
<dl>
<p>
<dt> <strong>KERN_FAILURE</strong>
<dd>
The specified clock does not provide this service.
</dl>
<h3>RELATED INFORMATION</h3>
<p>
Functions:
<a href="host_get_clock_service.html"><strong>host_get_clock_service</strong></a>,
<a href="clock_get_attributes.html"><strong>clock_get_attributes</strong></a>,
<a href="clock_get_time.html"><strong>clock_get_time</strong></a>,
<a href="clock_sleep.html"><strong>clock_sleep</strong></a>,
<a href="clock_alarm.html"><strong>clock_alarm</strong></a>.
<p>
Data Structures:
<a href="mapped_tvalspec.html"><strong>mapped_tvalspec</strong></a>.