1 <h2>mach_port_names
</h2>
4 <strong>Function
</strong> - Return information about a task's port name space.
7 <strong>kern_return_t mach_port_names
</strong>
8 <strong>(ipc_space_t
</strong> <var>task
</var>,
9 <strong>mach_port_name_array_t
</strong> <var>*names
</var>,
10 <strong>mach_msg_type_number_t
</strong> <var>*namesCnt
</var>,
11 <strong>mach_port_type_array_
</strong> <var>*types
</var>,
12 <strong>mach_msg_type_number_t
</strong> <var>*typesCnt
</var><strong>);
</strong>
20 The task whose port name space is queried.
24 [out pointer to dynamic array of
<var>mach_port_name_t
</var>]
26 ports, port sets, and dead names in the task's port name space, in no
29 <dt> <var>namesCnt
</var>
32 The number of names returned.
36 [out pointer to dynamic array of
<var>mach_port_type_t
</var>]
38 corresponding name. Indicates what kind of rights the task holds with
41 <dt> <var>typesCnt
</var>
44 The number of types returned.
48 The
<strong>mach_port_names
</strong> returns information about
<var>task
</var>'s
50 returns task's currently active names, which represent some port,
52 name right. For each name, it also returns what type of rights
53 <var>task
</var> holds (the
54 same information returned by
<strong>mach_port_type
</strong>).
56 Note that when a call to
<strong>mach_port_names
</strong> returns, the
57 number of entries in the two output arrays (
<var>names
</var> and
<var>types
</var>)
58 are equal (
<var>namesCnt
</var> equals
<var>typesCnt
</var>). The fact that this
59 interface returns two separate counts is an artifact of the Mach Interface Generator.
62 This interface is machine word length specific because of the port name
63 parameter and the returned port names.
64 <h3>RETURN VALUES
</h3>
66 Only generic errors apply.
67 <h3>RELATED INFORMATION
</h3>
70 <a href=
"mach_port_type.html"><strong>mach_port_type
</strong></a>.