xref: /xnu-11215/osfmk/man/clock_map_time.html (revision 186b8fce)
1*e13b1fa5SApple OSS Distributions<h2>clock_map_time</h2>
2*e13b1fa5SApple OSS Distributions<hr>
3*e13b1fa5SApple OSS Distributions<p>
4*e13b1fa5SApple OSS Distributions<strong>Function</strong> - Return a memory object that maps a clock.
5*e13b1fa5SApple OSS Distributions<h3>SYNOPSIS</h3>
6*e13b1fa5SApple OSS Distributions<pre>
7*e13b1fa5SApple OSS Distributions<strong>kern_return_t   clock_map_time</strong>
8*e13b1fa5SApple OSS Distributions                <strong>(clock_t</strong>                             <var>clock_name</var>,
9*e13b1fa5SApple OSS Distributions                 <strong>memory_object_t</strong>                   <var>clock_memory</var><strong>);</strong>
10*e13b1fa5SApple OSS Distributions</pre>
11*e13b1fa5SApple OSS Distributions<h3>PARAMETERS</h3>
12*e13b1fa5SApple OSS Distributions<dl>
13*e13b1fa5SApple OSS Distributions<p>
14*e13b1fa5SApple OSS Distributions<dt> <var>clock_name</var>
15*e13b1fa5SApple OSS Distributions<dd>
16*e13b1fa5SApple OSS Distributions[in clock-name send right]
17*e13b1fa5SApple OSS DistributionsThe name (or control) port for the clock.
18*e13b1fa5SApple OSS Distributions<p>
19*e13b1fa5SApple OSS Distributions<dt> <var>clock_memory</var>
20*e13b1fa5SApple OSS Distributions<dd>
21*e13b1fa5SApple OSS Distributions[out memory-object-representative send right]
22*e13b1fa5SApple OSS DistributionsMapped clock time
23*e13b1fa5SApple OSS Distributionsmemory object representative.
24*e13b1fa5SApple OSS Distributions</dl>
25*e13b1fa5SApple OSS Distributions<h3>DESCRIPTION</h3>
26*e13b1fa5SApple OSS Distributions<p>
27*e13b1fa5SApple OSS DistributionsThe <strong>clock_map_time</strong> function returns a memory object representative port
28*e13b1fa5SApple OSS Distributionsrepresenting read access to a memory object that contains (at offset zero) a
29*e13b1fa5SApple OSS Distributionsmapped version of the clock time (structure <strong>mapped_tvalspec</strong>).
30*e13b1fa5SApple OSS DistributionsThe returned right is suitable as an argument for <strong>vm_map</strong>.
31*e13b1fa5SApple OSS Distributions<h3>NOTES</h3>
32*e13b1fa5SApple OSS Distributions<p>
33*e13b1fa5SApple OSS DistributionsNot all clocks provide this service, but the REALTIME clock must.
34*e13b1fa5SApple OSS Distributions<h3>RETURN VALUES</h3>
35*e13b1fa5SApple OSS Distributions<dl>
36*e13b1fa5SApple OSS Distributions<p>
37*e13b1fa5SApple OSS Distributions<dt> <strong>KERN_FAILURE</strong>
38*e13b1fa5SApple OSS Distributions<dd>
39*e13b1fa5SApple OSS DistributionsThe specified clock does not provide this service.
40*e13b1fa5SApple OSS Distributions</dl>
41*e13b1fa5SApple OSS Distributions<h3>RELATED INFORMATION</h3>
42*e13b1fa5SApple OSS Distributions<p>
43*e13b1fa5SApple OSS DistributionsFunctions:
44*e13b1fa5SApple OSS Distributions<a href="host_get_clock_service.html"><strong>host_get_clock_service</strong></a>,
45*e13b1fa5SApple OSS Distributions<a href="clock_get_attributes.html"><strong>clock_get_attributes</strong></a>,
46*e13b1fa5SApple OSS Distributions<a href="clock_get_time.html"><strong>clock_get_time</strong></a>,
47*e13b1fa5SApple OSS Distributions<a href="clock_sleep.html"><strong>clock_sleep</strong></a>,
48*e13b1fa5SApple OSS Distributions<a href="clock_alarm.html"><strong>clock_alarm</strong></a>.
49*e13b1fa5SApple OSS Distributions<p>
50*e13b1fa5SApple OSS DistributionsData Structures:
51*e13b1fa5SApple OSS Distributions<a href="mapped_tvalspec.html"><strong>mapped_tvalspec</strong></a>.
52