xref: /xnu-10002.1.13/osfmk/man/processor_set_info.html (revision 1031c584a5e37aff177559b9f69dbd3c8c3fd30a)
1*1031c584SApple OSS Distributions<h2>processor_set_info</h2>
2*1031c584SApple OSS Distributions<hr>
3*1031c584SApple OSS Distributions<p>
4*1031c584SApple OSS Distributions<strong>Function</strong> - Return processor set state according to caller-specified flavor.
5*1031c584SApple OSS Distributions<h3>SYNOPSIS</h3>
6*1031c584SApple OSS Distributions<pre>
7*1031c584SApple OSS Distributions<strong>kern_return_t	processor_set_info</strong>
8*1031c584SApple OSS Distributions		<strong>(processor_set_name_t</strong>	<var>processor_set_name</var>,
9*1031c584SApple OSS Distributions		<strong>int</strong>	<var>flavor</var>,
10*1031c584SApple OSS Distributions		<strong>host_t</strong>	<var>host</var>,
11*1031c584SApple OSS Distributions		<strong>processor_set_info_t</strong>	<var>processor_set_info</var>,
12*1031c584SApple OSS Distributions		<strong>mach_msg_type_number_t</strong>	<var>processor_set_info_count</var><strong>);</strong>
13*1031c584SApple OSS Distributions</pre>
14*1031c584SApple OSS Distributions<h3>PARAMETERS</h3>
15*1031c584SApple OSS Distributions<dl>
16*1031c584SApple OSS Distributions<dt> <var>processor_set_name</var>
17*1031c584SApple OSS Distributions<dd>
18*1031c584SApple OSS Distributions[in processor-set-name send right]
19*1031c584SApple OSS DistributionsA processor set name (or control)
20*1031c584SApple OSS Distributionsport for which information is desired.
21*1031c584SApple OSS Distributions<dt> <var>flavor</var>
22*1031c584SApple OSS Distributions<dd>
23*1031c584SApple OSS Distributions[in scalar]
24*1031c584SApple OSS DistributionsThe type of information requested.
25*1031c584SApple OSS Distributions<dl>
26*1031c584SApple OSS Distributions<dt> <strong>PROCESSOR_SET_BASIC_INFO</strong>
27*1031c584SApple OSS Distributions<dd>
28*1031c584SApple OSS DistributionsBasic information concerning the processor set (number of
29*1031c584SApple OSS Distributionsassigned processors and default policy).  The returned structure
30*1031c584SApple OSS Distributionsis defined by <strong>processor_set_basic_info</strong>.
31*1031c584SApple OSS Distributions<dt> <strong>PROCESSOR_SET_TIMESHARE_DEFAULT</strong>
32*1031c584SApple OSS Distributions<dd>
33*1031c584SApple OSS DistributionsThe base attributes for the timeshare scheduling policy.  The
34*1031c584SApple OSS Distributionsreturned structure is <strong>policy_timeshare_base</strong>.
35*1031c584SApple OSS Distributions<dt> <strong>PROCESSOR_SET_FIFO_DEFAULT</strong>
36*1031c584SApple OSS Distributions<dd>
37*1031c584SApple OSS DistributionsThe base attributes for the FIFO scheduling policy.  The
38*1031c584SApple OSS Distributionsreturned structure is <strong>policy_fifo_base</strong>.
39*1031c584SApple OSS Distributions<dt> <strong>PROCESSOR_SET_RR_DEFAULT</strong>
40*1031c584SApple OSS Distributions<dd>
41*1031c584SApple OSS DistributionsThe base attributes for the round-robin scheduling policy.  The
42*1031c584SApple OSS Distributionsreturned structure is <strong>policy_rr_base</strong>.
43*1031c584SApple OSS Distributions<dt> <strong>PROCESSOR_SET_TIMESHARE_LIMITS</strong>
44*1031c584SApple OSS Distributions<dd>
45*1031c584SApple OSS DistributionsLimits on the allowed timeshare policy attributes.  The
46*1031c584SApple OSS Distributionsreturned structure is defined by <strong>policy_timeshare_limit</strong>.
47*1031c584SApple OSS Distributions<dt> <strong>PROCESSOR_SET_RR_LIMITS</strong>
48*1031c584SApple OSS Distributions<dd>
49*1031c584SApple OSS DistributionsLimits on the allowed round robin policy attributes.  The
50*1031c584SApple OSS Distributionsreturned structure is defined by <strong>policy_rr_limit</strong>.
51*1031c584SApple OSS Distributions<dt> <strong>PROCESSOR_SET_FIFO_LIMITS</strong>
52*1031c584SApple OSS Distributions<dd>
53*1031c584SApple OSS DistributionsLimits on the allowed first-in, first-out policy attributes.  The
54*1031c584SApple OSS Distributionsreturned structure is defined by <strong>policy_fifo_limit</strong>.
55*1031c584SApple OSS Distributions<dt> <strong>PROCESSOR_SET_ENABLED_POLICIES</strong>
56*1031c584SApple OSS Distributions<dd>
57*1031c584SApple OSS DistributionsThe set of enabled policies.  The returned data is a bit-vector.
58*1031c584SApple OSS Distributions</dl>
59*1031c584SApple OSS Distributions<dt> <var>host</var>
60*1031c584SApple OSS Distributions<dd>
61*1031c584SApple OSS Distributions[out host-name send right]
62*1031c584SApple OSS DistributionsThe name port for the host on which the
63*1031c584SApple OSS Distributionsprocessor set resides.
64*1031c584SApple OSS Distributions<dt> <var>processor_set_info</var>
65*1031c584SApple OSS Distributions<dd>
66*1031c584SApple OSS Distributions[out structure]
67*1031c584SApple OSS DistributionsInformation about the processor set.
68*1031c584SApple OSS Distributions<dt> <var>processor_set_info_count</var>
69*1031c584SApple OSS Distributions<dd>
70*1031c584SApple OSS Distributions[in/out scalar]
71*1031c584SApple OSS DistributionsOn input, the maximum size of the buffer; on output, the
72*1031c584SApple OSS Distributionssize returned (in natural-sized units).
73*1031c584SApple OSS Distributions</dl>
74*1031c584SApple OSS Distributions<h3>DESCRIPTION</h3>
75*1031c584SApple OSS Distributions<p>
76*1031c584SApple OSS DistributionsThe <strong>processor_set_info</strong> function returns selected information
77*1031c584SApple OSS Distributionsfor a processor set, as specified by <var>flavor</var>.
78*1031c584SApple OSS Distributions<h3>NOTES</h3>
79*1031c584SApple OSS Distributions<p>
80*1031c584SApple OSS DistributionsA processor set has a single default scheduling policy in effect for it (as
81*1031c584SApple OSS Distributionsreturned by <strong>PROCESSOR_SET_BASIC_INFO</strong>), so only one of the default
82*1031c584SApple OSS Distributionsscheduling structures has valid information.  On the other hand,
83*1031c584SApple OSS Distributionsa processor set
84*1031c584SApple OSS Distributionsmaintains limits for all defined scheduling policies, so all
85*1031c584SApple OSS Distributionsof the scheduling limit
86*1031c584SApple OSS Distributionsstructures return valid values.
87*1031c584SApple OSS Distributions<h3>RETURN VALUES</h3>
88*1031c584SApple OSS Distributions<p>
89*1031c584SApple OSS DistributionsOnly generic errors apply.
90*1031c584SApple OSS Distributions<h3>RELATED INFORMATION</h3>
91*1031c584SApple OSS Distributions<p>
92*1031c584SApple OSS DistributionsFunctions:
93*1031c584SApple OSS Distributions<a href="processor_set_statistics.html">processor_set_statistics</a>,
94*1031c584SApple OSS Distributions<a href="processor_set_create.html">processor_set_create</a>,
95*1031c584SApple OSS Distributions<a href="processor_set_default.html">processor_set_default</a>,
96*1031c584SApple OSS Distributions<a href="processor_assign.html">processor_assign</a>,
97*1031c584SApple OSS Distributions<a href="P_set_policy_control.html">processor_set_policy_control</a>.
98*1031c584SApple OSS Distributions<p>
99*1031c584SApple OSS DistributionsData Structures:
100*1031c584SApple OSS Distributions<a href="processor_set_basic_info.html">processor_set_basic_info</a>,
101*1031c584SApple OSS Distributions<a href="policy_timeshare_info.html">policy_timeshare_info</a>,
102*1031c584SApple OSS Distributions<a href="policy_rr_info.html">policy_rr_info</a>,
103*1031c584SApple OSS Distributions<a href="policy_fifo_info.html">policy_fifo_info</a>.
104