1 <h2>mach_port_set_attributes
</h2>
4 <strong>Function
</strong> - Set the target port's attributes.
7 <strong>kern_return_t mach_port_set_attributes
</strong>
8 <strong>(ipc_space_t
</strong> <var>task
</var>,
9 <strong>mach_port_name_t
</strong> <var>name
</var>,
10 <strong>mach_port_flavor_t
</strong> <var>flavor
</var>,
11 <strong>mach_port_info_t
</strong> <var>port_info
</var>,
12 <strong>mach_msg_type_number_t
</strong> <var>port_info_count
</var><strong>);
</strong>
20 The task holding a receive right to the port in
26 <var>task
</var>'s name for the port.
28 <dt> <var>flavor
</var>
31 The type of attributes to be set. Valid values are:
34 <dt> <strong>MACH_PORT_LIMITS_INFO
</strong>
36 Sets resource limits (queue limits) for the port. The declaration
37 of this data is found in structure
<strong>mach_port_limits
</strong>.
40 <dt> <var>port_info
</var>
42 [pointer to in structure]
43 Attributes for the specified port.
45 <dt> <var>port_info_count
</var>
48 The size of the buffer (in natural-sized units).
53 The
<strong>mach_port_set_attributes
</strong> function sets attributes of type
57 This interface is machine word length specific because of the port name
59 <h3>RETURN VALUES
</h3>
62 <dt> <strong>KERN_INVALID_NAME
</strong>
64 <var>name
</var> did not denote a right.
66 <dt> <strong>KERN_INVALID_RIGHT
</strong>
68 <var>name
</var> denoted a right, but not a receive right.
70 <h3>RELATED INFORMATION
</h3>
73 <a href=
"mach_port_allocate.html"><strong>mach_port_allocate
</strong></a>,
74 <a href=
"mach_port_allocate_name.html"><strong>mach_port_allocate_name
</strong></a>,
75 <a href=
"mach_port_get_attributes.html"><strong>mach_port_get_attributes
</strong></a>.
78 <a href=
"mach_port_limits.html"><strong>mach_port_limits
</strong></a>.