forked from apple/darwin-xnu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdo_mach_notify_dead_name.html
65 lines (63 loc) · 2.38 KB
/
do_mach_notify_dead_name.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
<h2>do_mach_notify_dead_name</h2>
<hr>
<strong>Server Interface</strong> - Handle the current instance of a dead-name notification.
<p>
<h3>SYNOPSIS</h3>
<pre>
<strong>kern_return_t do_mach_notify_dead_name</strong>
<strong>(notify_port_t</strong> <var>notify</var>,
<strong>mach_port_name_t</strong> <var>name</var><strong>);</strong>
<strong>kern_return_t do_seqnos_mach_notify_dead_name</strong>
<strong>(notify_port_t</strong> <var>notify</var>,
<strong>mach_port_seqno_t</strong> <var>seqno</var>,
<strong>mach_port_name_t</strong> <var>name</var><strong>);</strong>
</pre>
<h3>PARAMETERS</h3>
<dl>
<p>
<dt> <var>notify</var>
<dd>
[in notify (receive) right]
The port to which the notification was sent.
<p>
<dt> <var>seqno</var>
<dd>
[in scalar]
The sequence number of this message relative to the
notification port.
<p>
<dt> <var>name</var>
<dd>
[in scalar]
The dead name.
</dl>
<h3>DESCRIPTION</h3>
<p>
A <strong>do_mach_notify_dead_name</strong> function is called by <strong>notify_server</strong>
as the
result of a kernel message indicating that the port name is now
dead as the result
of the associated receive right having died. In contrast, a port-deleted
notification indicates that the port name is no longer usable
(that is, it no longer names
a valid right), typically as a result of the right so named being consumed or
moved. <var>notify</var> is the port named via <strong>mach_port_request_notification</strong>
or
<strong>mach_msg</strong>.
<h3>NOTES</h3>
<p>
This interface is machine word length specific because of the port name
parameter.
<h3>RETURN VALUES</h3>
<p>
Only generic errors apply.
<h3>RELATED INFORMATION</h3>
<p>
Functions:
<a href="notify_server.html"><strong>notify_server</strong></a>,
<a href="seqnos_notify_server.html"><strong>seqnos_notify_server</strong></a>,
<a href="mach_msg.html"><strong>mach_msg</strong></a>,
<a href="MP_request_notification.html"><strong>mach_port_request_notification</strong></a>,
<a href="do_mach_notify_no_senders.html"><strong>do_mach_notify_no_senders</strong></a>,
<a href="DMN_port_deleted.html"><strong>do_mach_notify_port_deleted</strong></a>,
<a href="do_mach_notify_send_once.html"><strong>do_mach_notify_send_once</strong></a>.