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