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