forked from apple/darwin-xnu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclock_alarm_reply.html
80 lines (80 loc) · 2.54 KB
/
clock_alarm_reply.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<h2>clock_alarm_reply</h2>
<hr>
<p>
<strong>Function</strong> - Ring a preset alarm.
<h3>SYNOPSIS</h3>
<pre>
<strong>kern_return_t clock_alarm_reply</strong>
<strong>(reply_port_t</strong> <var>alarm_reply_port</var>,
<strong>kern_return_t</strong> <var>reply_code</var>,
<strong>alarm_type_t</strong> <var>alarm_type</var>,
<strong>tvalspec_t</strong> <var>wake_time</var><strong>);</strong>
</pre>
<h3>PARAMETERS</h3>
<dl>
<p>
<dt> <var>alarm_reply_port</var>
<dd>
[in alarm (receive) right]
The reply port named in the corresponding
<strong>clock_alarm</strong> call.
<p>
<dt> <var>reply_code</var>
<dd>
[in scalar]
The reply status code from the alarm. The possible values
are:
<dl>
<p>
<dt> <strong>KERN_SUCCESS</strong>
<dd>
The alarm was delivered without problem.
<p>
<dt> <strong>KERN_INVALID_VALUE</strong>
<dd>
The <var>alarm_type</var> and/or <var>alarm_time</var> values supplied to
<strong>clock_alarm</strong> were invalid.
<p>
<dt> <strong>KERN_INVALID_LEDGER</strong>
<dd>
The <var>ledger</var> supplied to <strong>clock_alarm</strong> was not a ledger.
<p>
<dt> <strong>KERN_ABORTED</strong>
<dd>
The alarm was terminated via use of <strong>clock_set_time</strong>.
</dl>
<p>
<dt> <var>alarm_type</var>
<dd>
[in scalar]
The alarm type value supplied to the <strong>clock_alarm</strong> call.
Only the low order bits of this value are used by the kernel so the high
order bits are available for application use as an alarm identifier.
<p>
<dt> <var>wake_time</var>
<dd>
[in structure]
The time when the alarm message was sent.
</dl>
<h3>DESCRIPTION</h3>
<p>
A <strong>clock_alarm_reply</strong> function is called as the result
of a message from the
kernel indicating that a previously requested alarm time (<strong>clock_alarm</strong>)
has arrived.
<h3>RETURN VALUES</h3>
<p>
Only generic errors apply.
<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>,
<a href="clock_reply_server.html"><strong>clock_reply_server</strong></a>,
<a href="clock_set_time.html"><strong>clock_set_time</strong></a>.
<p>
Data Structures:
<a href="tvalspec.html"><strong>tvalspec</strong></a>.