mach_port_allocate_qos.html   [plain text]

<strong>Function</strong> - Allocate a port with specified "quality of service."
<strong>kern_return_t	mach_port_allocate_qos</strong>
		<strong>(ipc_space_t</strong>	<var>task</var>,
		<strong>mach_port_right_t</strong>	<var>right</var>,
		<strong>mach_port_qos_t</strong>	<var>qos</var>,
		<strong>mach_port_name_t*</strong>	<var>name</var><strong>);</strong>
<dt> <var>task</var>
[in task send right] The task acquiring the port right to the allocated port.
<dt> <var>right</var>
[in scalar] The type of port right to map to the allocated port.
<dt> <var>qos</var>
[pointer to an in/out structure] Structure used to specify
the desired "quality of service." This structure indicates whether
     or not the caller is providing a name for the port and whether or not
     the port will exhibit realtime behavior.
<dt> <var>name</var>
[in/out scalar] The name of the installed port right, either specified by the
     caller or chosen by the system.
The <strong>mach_port_allocate_qos</strong> function allocates a port with
caller-specified "quality of service" characteristics with or without a
caller-specified name; in other words, the caller may specify a desired name
or it may let the kernel generate the name.  The new port is capable of
supporting full Mach port semantics (i.e no-more-senders notification can be
requested on the port).
This interface is machine word length specific because of the port
name parameter.
<dt> <strong>KERN_NO_SPACE</strong>
There was no room in task's IPC name space for another right.
<dt> <strong>KERN_INVALID_VALUE</strong>
The type of right specified by <var>right</var> is either invalid or conflicts
with the requested "quality of service" as specified via <var>qos</var>.
<a href="mach_port_allocate.html"><strong>mach_port_allocate</strong></a>,
<a href="mach_port_allocate_full.html"><strong>mach_port_allocate_full</strong></a>,
<a href="mach_port_allocate_name.html"><strong>mach_port_allocate_name</strong></a>,
<a href="mach_port_deallocate.html"><strong>mach_port_deallocate</strong></a>,
<a href="mach_port_insert_right.html"><strong>mach_port_insert_right</strong></a>,
<a href="mach_port_extract_right.html"><strong>mach_port_extract_right</strong></a>.
<a href="mach_port_qos.html"><strong>mach_port_qos</strong></a>.