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