1 <h2>mach_port_allocate_qos
</h2>
4 <strong>Function
</strong> - Allocate a port with specified "quality of service."
7 <strong>kern_return_t mach_port_allocate_qos
</strong>
8 <strong>(ipc_space_t
</strong> <var>task
</var>,
9 <strong>mach_port_right_t
</strong> <var>right
</var>,
10 <strong>mach_port_qos_t
</strong> <var>qos
</var>,
11 <strong>mach_port_name_t*
</strong> <var>name
</var><strong>);
</strong>
17 [in task send right] The task acquiring the port right to the allocated port.
20 [in scalar] The type of port right to map to the allocated port.
23 [pointer to an in/out structure] Structure used to specify
24 the desired "quality of service." This structure indicates whether
25 or not the caller is providing a name for the port and whether or not
26 the port will exhibit realtime behavior.
29 [in/out scalar] The name of the installed port right, either specified by the
30 caller or chosen by the system.
34 The
<strong>mach_port_allocate_qos
</strong> function allocates a port with
35 caller-specified "quality of service" characteristics with or without a
36 caller-specified name; in other words, the caller may specify a desired name
37 or it may let the kernel generate the name. The new port is capable of
38 supporting full Mach port semantics (i.e no-more-senders notification can be
39 requested on the port).
42 This interface is machine word length specific because of the port
44 <h3>RETURN VALUES
</h3>
46 <dt> <strong>KERN_NO_SPACE
</strong>
48 There was no room in task's IPC name space for another right.
49 <dt> <strong>KERN_INVALID_VALUE
</strong>
51 The type of right specified by
<var>right
</var> is either invalid or conflicts
52 with the requested "quality of service" as specified via
<var>qos
</var>.
54 <h3>RELATED INFORMATION
</h3>
57 <a href=
"mach_port_allocate.html"><strong>mach_port_allocate
</strong></a>,
58 <a href=
"mach_port_allocate_full.html"><strong>mach_port_allocate_full
</strong></a>,
59 <a href=
"mach_port_allocate_name.html"><strong>mach_port_allocate_name
</strong></a>,
60 <a href=
"mach_port_deallocate.html"><strong>mach_port_deallocate
</strong></a>,
61 <a href=
"mach_port_insert_right.html"><strong>mach_port_insert_right
</strong></a>,
62 <a href=
"mach_port_extract_right.html"><strong>mach_port_extract_right
</strong></a>.
65 <a href=
"mach_port_qos.html"><strong>mach_port_qos
</strong></a>.