xref: /xnu-8792.41.9/osfmk/man/processor_set_create.html (revision 5c2921b07a2480ab43ec66f5b9e41cb872bc554f)
1*5c2921b0SApple OSS Distributions<h2>processor_set_create</h2>
2*5c2921b0SApple OSS Distributions<hr>
3*5c2921b0SApple OSS Distributions<p>
4*5c2921b0SApple OSS Distributions<strong>Function</strong> - Create a new processor set object.
5*5c2921b0SApple OSS Distributions<h3>SYNOPSIS</h3>
6*5c2921b0SApple OSS Distributions<pre>
7*5c2921b0SApple OSS Distributions<strong>kern_return_t	processor_set_create</strong>
8*5c2921b0SApple OSS Distributions		<strong>(host_t</strong>	<var>host_name</var>,
9*5c2921b0SApple OSS Distributions		<strong>processor_set_t</strong>	<var>new_set</var>,
10*5c2921b0SApple OSS Distributions		<strong>processor_set_name_t</strong>	<var>new_name</var><strong>);</strong>
11*5c2921b0SApple OSS Distributions</pre>
12*5c2921b0SApple OSS Distributions<h3>PARAMETERS</h3>
13*5c2921b0SApple OSS Distributions<dl>
14*5c2921b0SApple OSS Distributions<dt> <var>host_name</var>
15*5c2921b0SApple OSS Distributions<dd>
16*5c2921b0SApple OSS Distributions[in host-name send right]
17*5c2921b0SApple OSS DistributionsThe name (or control) port for the host on
18*5c2921b0SApple OSS Distributionswhich the set is to be created.
19*5c2921b0SApple OSS Distributions<dt> <var>new_set</var>
20*5c2921b0SApple OSS Distributions<dd>
21*5c2921b0SApple OSS Distributions[out processor-set-control send right]
22*5c2921b0SApple OSS DistributionsControl port used for performing
23*5c2921b0SApple OSS Distributionsoperations on the new set.
24*5c2921b0SApple OSS Distributions<dt> <var>new_name</var>
25*5c2921b0SApple OSS Distributions<dd>
26*5c2921b0SApple OSS Distributions[out processor-set-name send right]
27*5c2921b0SApple OSS DistributionsName port used to identify the new
28*5c2921b0SApple OSS Distributionsset and obtain information about it.
29*5c2921b0SApple OSS Distributions</dl>
30*5c2921b0SApple OSS Distributions<h3>DESCRIPTION</h3>
31*5c2921b0SApple OSS Distributions<p>
32*5c2921b0SApple OSS DistributionsThe <strong>processor_set_create</strong> function creates a new processor
33*5c2921b0SApple OSS Distributionsset and returns the
34*5c2921b0SApple OSS Distributionstwo ports associated with it.  The port returned in <var>new_set</var> is the control port
35*5c2921b0SApple OSS Distributionsrepresenting the set.  It is used to perform operations such
36*5c2921b0SApple OSS Distributionsas assigning processors,
37*5c2921b0SApple OSS Distributionstasks or threads.  The port returned in <var>new_name</var> is the name port which
38*5c2921b0SApple OSS Distributionsidentifies the set, and is used to obtain information about the set.
39*5c2921b0SApple OSS Distributions<h3>RETURN VALUES</h3>
40*5c2921b0SApple OSS Distributions<p>
41*5c2921b0SApple OSS DistributionsOnly generic values apply.
42*5c2921b0SApple OSS Distributions<h3>RELATED INFORMATION</h3>
43*5c2921b0SApple OSS Distributions<p>
44*5c2921b0SApple OSS DistributionsFunctions:
45*5c2921b0SApple OSS Distributions<a href="processor_set_destroy.html">processor_set_destroy</a>,
46*5c2921b0SApple OSS Distributions<a href="processor_set_info.html">processor_set_info</a>,
47*5c2921b0SApple OSS Distributions<a href="processor_assign.html">processor_assign</a>,
48*5c2921b0SApple OSS Distributions<a href="task_assign.html">task_assign</a>,
49*5c2921b0SApple OSS Distributions<a href="thread_assign.html">thread_assign</a>.
50