processor_set_create.html   [plain text]

<strong>Function</strong> - Create a new processor set object.
<strong>kern_return_t	processor_set_create</strong>
		<strong>(host_t</strong>	<var>host_name</var>,
		<strong>processor_set_t</strong>	<var>new_set</var>,
		<strong>processor_set_name_t</strong>	<var>new_name</var><strong>);</strong>
<dt> <var>host_name</var> 
[in host-name send right]
The name (or control) port for the host on 
which the set is to be created.
<dt> <var>new_set</var> 
[out processor-set-control send right]
Control port used for performing 
operations on the new set.
<dt> <var>new_name</var> 
[out processor-set-name send right]
Name port used to identify the new 
set and obtain information about it.
The <strong>processor_set_create</strong> function creates a new processor
set and returns the 
two ports associated with it.  The port returned in <var>new_set</var> is the control port
representing the set.  It is used to perform operations such
as assigning processors, 
tasks or threads.  The port returned in <var>new_name</var> is the name port which
identifies the set, and is used to obtain information about the set.
Only generic values apply.
<a href="processor_set_destroy.html">processor_set_destroy</a>,
<a href="processor_set_info.html">processor_set_info</a>,
<a href="processor_assign.html">processor_assign</a>,
<a href="task_assign.html">task_assign</a>,
<a href="thread_assign.html">thread_assign</a>.