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