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