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