1 <h2>mach_port_type
</h2>
4 <strong>Function
</strong> - Return the characteristics of the target port name.
7 <strong>kern_return_t mach_port_type
</strong>
8 <strong>(ipc_space_t
</strong> <var>task
</var>,
9 <strong>mach_port_name_t
</strong> <var>name
</var>,
10 <strong>mach_port_type_t
</strong> <var>ptype
</var><strong>);
</strong>
18 The task whose port name space is queried.
23 The name being queried.
28 The type of the name. Indicates what kind of right the task
29 holds for the port, port set, or dead name.
33 The
<strong>mach_port_type
</strong> function returns information about
<var>task
</var>'s
34 rights for a specific name in its port name space. The returned
35 <var>ptype
</var> is a bit-mask indicating what rights
<var>task
</var>
37 The bit-mask is composed of the following bits:
39 <dt> <strong>MACH_PORT_TYPE_SEND
</strong>
41 The name denotes send rights.
43 <dt> <strong>MACH_PORT_TYPE_RECEIVE
</strong>
45 The name denotes a receive right.
47 <dt> <strong>MACH_PORT_TYPE_SEND_ONCE
</strong>
49 The name denotes a send-once right.
51 <dt> <strong>MACH_PORT_TYPE_PORT_SET
</strong>
53 The name denotes a port set.
55 <dt> <strong>MACH_PORT_TYPE_DEAD_NAME
</strong>
57 The name is a dead name.
59 <dt> <strong>MACH_PORT_TYPE_DNREQUEST
</strong>
61 A dead-name request has been registered for the right.
65 This interface is machine word length specific because of the port name
67 <h3>RETURN VALUES
</h3>
70 <dt> <strong>KERN_INVALID_NAME
</strong>
72 <var>name
</var> did not denote a right.
74 <h3>RELATED INFORMATION
</h3>
77 <a href=
"mach_port_names.html"><strong>mach_port_names
</strong></a>,
78 <a href=
"mach_port_get_attributes.html"><strong>mach_port_get_attributes
</strong></a>,
79 <a href=
"mach_port_get_set_status.html"><strong>mach_port_get_set_status
</strong></a>.