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