1 <h2>mach_port_get_set_status
</h2>
4 <strong>Function
</strong> - Return the port right names contained in the target port set.
7 <strong>kern_return_t mach_port_get_set_status
</strong>
8 <strong>(ipc_space_t
</strong> <var>task
</var>,
9 <strong>mach_port_name_t
</strong> <var>name
</var>,
10 <strong>mach_port_name_array_t
</strong> <var>*members
</var>,
11 <strong>task
</strong> <var>count
</var><strong>);
</strong>
19 The task holding the port set.
24 The task's name for the port set.
26 <dt> <var>members
</var>
28 [out pointer to dynamic array of
<var>mach_port_name_t
</var>]
30 for the port set's members.
35 The number of member names returned.
39 The
<strong>mach_port_get_set_status
</strong> function returns the individual port
40 right names for all port rights contained in the specified port set.
41 The
<var>members
</var> parameter is an array that is automatically
42 allocated when the reply message is received. Note that
43 <strong>vm_deallocate
</strong> should be used to free the array.
45 Note that this interface, unlike others such as
<strong>task_threads
</strong>,
46 returns a collection of port right names, NOT a collection of port rights themselves.
47 In other words, this function does not insert port rights into the caller's
48 port right name space; consequently, a call to
<strong>mach_port_get_set_status
</strong>
49 does not affect the reference count of each port right within the target port set.
52 This interface is machine word length specific because of the port name
53 parameter and the returned port names.
54 <h3>RETURN VALUES
</h3>
57 <dt> <strong>KERN_INVALID_NAME
</strong>
59 <var>name
</var> did not denote a right.
61 <dt> <strong>KERN_INVALID_RIGHT
</strong>
63 <var>name
</var> denoted a right, but not a port set.
65 <h3>RELATED INFORMATION
</h3>
68 <a href=
"mach_port_insert_member.html"><strong>mach_port_insert_member
</strong></a>,
69 <a href=
"mach_port_extract_member.html"><strong>mach_port_extract_member
</strong></a>,
70 <a href=
"mach_port_move_member.html"><strong>mach_port_move_member
</strong></a>,
71 <a href=
"vm_deallocate.html"><strong>vm_deallocate
</strong></a>.