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