1 <h2>norma_get_special_port
</h2>
4 <strong>Function
</strong> - Acquire a send right for a specified node-specific special port.
7 <strong>kern_return_t norma_get_special_port
</strong>
8 <strong>(host_priv_t
</strong> <var>host_priv
</var>,
9 <strong>int
</strong> <var>node
</var>,
10 <strong>int
</strong> <var>which_port
</var>,
11 <strong>mach_port_t
</strong> <var>special_port
</var><strong>);
</strong>
17 <strong>#include<mach/norma_special_ports.h>
</strong>
19 <strong>kern_return_t norma_get_device_port
</strong>
20 <strong>(host_priv_t
</strong> <var>host_priv
</var>,
21 <strong>int
</strong> <var>node
</var>,
22 <strong>mach_port_t
</strong> <var>special_port
</var><strong>);
</strong>
24 <strong>kern_return_t norma_get_host_port
</strong>
25 <strong>(host_priv_t
</strong> <var>host_priv
</var>,
26 <strong>int
</strong> <var>node
</var>,
27 <strong>mach_port_t
</strong> <var>special_port
</var><strong>);
</strong>
29 <strong>kern_return_t norma_get_host_priv_port
</strong>
30 <strong>(host_priv_t
</strong> <var>host_priv
</var>,
31 <strong>int
</strong> <var>node
</var>,
32 <strong>mach_port_t
</strong> <var>special_port
</var><strong>);
</strong>
34 <strong>kern_return_t norma_get_nameserver_port
</strong>
35 <strong>(host_priv_t
</strong> <var>host_priv
</var>,
36 <strong>int
</strong> <var>node
</var>,
37 <strong>mach_port_t
</strong> <var>special_port
</var><strong>);
</strong>
41 <dt> <var>host_priv
</var>
43 [in host-control send right]
44 The control port for the host for which to
45 return the special port's send right.
50 The index of the node for which the port is desired.
52 <dt> <var>which_port
</var>
55 The index of the special port for which the send right is
56 requested. Valid values are:
59 <dt> <strong>NORMA_DEVICE_PORT
</strong>
61 [device-master send right] The device master port for the
64 <dt> <strong>NORMA_HOST_PORT
</strong>
66 [host-name send right] The host name port for the node.
68 <dt> <strong>NORMA_HOST_PRIV_PORT
</strong>
70 [host-control send right] The host control port for the node.
72 <dt> <strong>NORMA_NAMESERVER_PORT
</strong>
74 [name-server send right] The registered name server port for
78 <dt> <var>special_port
</var>
80 [out norma-special send right]
81 The returned value for the port.
85 The
<strong>norma_get_special_port
</strong> function returns a send
86 right for a special port belonging to
<var>node
</var> on
<var>host_priv
</var>.
88 Each node maintains a (small) set of node specific ports. The device master
89 port, host name, and host control ports are
90 maintained by the kernel. The kernel also permits a small set
92 node specific ports; the name server port is an example and is given (by
93 convention) an assigned special port index.
94 <h3>RETURN VALUES
</h3>
96 Only generic errors apply.
97 <h3>RELATED INFORMATION
</h3>
100 <a href=
"mach_host_self.html"><strong>mach_host_self
</strong></a>,
101 <a href=
"norma_set_special_port.html"><strong>norma_get_special_port
</strong></a>,
102 <a href=
"bootstrap_ports.html"><strong>bootstrap_ports
</strong></a>.