xref: /xnu-10063.121.3/osfmk/man/host_processor_slots.html (revision 2c2f96dc2b9a4408a43d3150ae9c105355ca3daa)
1*2c2f96dcSApple OSS Distributions<h2>host_processor_slots</h2>
2*2c2f96dcSApple OSS Distributions<hr>
3*2c2f96dcSApple OSS Distributions<p>
4*2c2f96dcSApple OSS Distributions<strong>Function</strong> - Return a list of numbers that map processor slots to active processors.
5*2c2f96dcSApple OSS Distributions<h3>SYNOPSIS</h3>
6*2c2f96dcSApple OSS Distributions<pre>
7*2c2f96dcSApple OSS Distributions<strong>kern_return_t   host_processor_slots</strong>
8*2c2f96dcSApple OSS Distributions                <strong>(host_t</strong>                                    <var>host</var>,
9*2c2f96dcSApple OSS Distributions                 <strong>processor_slot_t</strong>                         <var>slots</var>,
10*2c2f96dcSApple OSS Distributions                 <strong>host</strong>                                     <var>count</var><strong>);</strong>
11*2c2f96dcSApple OSS Distributions</pre>
12*2c2f96dcSApple OSS Distributions<h3>PARAMETERS</h3>
13*2c2f96dcSApple OSS Distributions<dl>
14*2c2f96dcSApple OSS Distributions<p>
15*2c2f96dcSApple OSS Distributions<dt> <var>host</var>
16*2c2f96dcSApple OSS Distributions<dd>
17*2c2f96dcSApple OSS Distributions[in host-name send right]
18*2c2f96dcSApple OSS DistributionsThe name (or control) port for the host for
19*2c2f96dcSApple OSS Distributionswhich information is to be obtained.
20*2c2f96dcSApple OSS Distributions<p>
21*2c2f96dcSApple OSS Distributions<dt> <var>slots</var>
22*2c2f96dcSApple OSS Distributions<dd>
23*2c2f96dcSApple OSS Distributions[out array of <var>processor_slot_t</var>]
24*2c2f96dcSApple OSS DistributionsAn array of the processor slot numbers
25*2c2f96dcSApple OSS Distributionsfor active processors.
26*2c2f96dcSApple OSS Distributions<p>
27*2c2f96dcSApple OSS Distributions<dt> <var>count</var>
28*2c2f96dcSApple OSS Distributions<dd>
29*2c2f96dcSApple OSS Distributions[pointer to in/out scalar]
30*2c2f96dcSApple OSS DistributionsOn input, the maximum size of the slots
31*2c2f96dcSApple OSS Distributionsbuffer; on output, the number of returned slot numbers.
32*2c2f96dcSApple OSS Distributions</dl>
33*2c2f96dcSApple OSS Distributions<h3>DESCRIPTION</h3>
34*2c2f96dcSApple OSS Distributions<p>
35*2c2f96dcSApple OSS DistributionsThe <strong>host_processor_slots</strong> function returns an array
36*2c2f96dcSApple OSS Distributionsof the processor slots
37*2c2f96dcSApple OSS Distributionsdefined for the host.
38*2c2f96dcSApple OSS Distributions<h3>RETURN VALUES</h3>
39*2c2f96dcSApple OSS Distributions<p>
40*2c2f96dcSApple OSS DistributionsOnly generic errors apply.
41*2c2f96dcSApple OSS Distributions<h3>RELATED INFORMATION</h3>
42*2c2f96dcSApple OSS Distributions<p>
43*2c2f96dcSApple OSS DistributionsFunctions:
44*2c2f96dcSApple OSS Distributions<a href="host_info.html"><strong>host_info</strong></a>,
45*2c2f96dcSApple OSS Distributions<a href="host_processors.html"><strong>host_processors</strong></a>,
46*2c2f96dcSApple OSS Distributions<a href="processor_info.html"><strong>processor_info</strong></a>.
47