xref: /xnu-10002.81.5/osfmk/man/P_set_policy_enable.html (revision 5e3eaea39dcf651e66cb99ba7d70e32cc4a99587)
1*5e3eaea3SApple OSS Distributions<h2>processor_set_policy_enable</h2>
2*5e3eaea3SApple OSS Distributions<hr>
3*5e3eaea3SApple OSS Distributions<p>
4*5e3eaea3SApple OSS Distributions<strong>Function</strong> - Enables a scheduling policy for a processor set.
5*5e3eaea3SApple OSS Distributions<h3>SYNOPSIS</h3>
6*5e3eaea3SApple OSS Distributions<pre>
7*5e3eaea3SApple OSS Distributions<strong>#include&lt mach/mach_host.h&gt</strong>
8*5e3eaea3SApple OSS Distributions
9*5e3eaea3SApple OSS Distributions<strong>kern_return_t	processor_set_policy_enable</strong>
10*5e3eaea3SApple OSS Distributions		<strong>(processor_set_t</strong>	<var>processor_set</var>,
11*5e3eaea3SApple OSS Distributions		<strong>int</strong>	<var>policy</var><strong>);</strong>
12*5e3eaea3SApple OSS Distributions</pre>
13*5e3eaea3SApple OSS Distributions<h3>PARAMETERS</h3>
14*5e3eaea3SApple OSS Distributions<dl>
15*5e3eaea3SApple OSS Distributions<dt> <var>processor_set</var>
16*5e3eaea3SApple OSS Distributions<dd>
17*5e3eaea3SApple OSS Distributions[in processor-set-control port] The control port for the processor set for which a scheduling policy is to be enabled.
18*5e3eaea3SApple OSS Distributions<dt> <var>policy</var>
19*5e3eaea3SApple OSS Distributions<dd>
20*5e3eaea3SApple OSS Distributions[in scalar] Policy to be enabled. The values currently defined are POLICY_TIMESHARE and POLICY_FIXEDPRI.
21*5e3eaea3SApple OSS Distributions</dl>
22*5e3eaea3SApple OSS Distributions<h3>DESCRIPTION</h3>
23*5e3eaea3SApple OSS Distributions<p>
24*5e3eaea3SApple OSS DistributionsThe <strong>processor_set_policy_enable</strong>
25*5e3eaea3SApple OSS Distributionsfunction extends the set of scheduling policies allowed for
26*5e3eaea3SApple OSS Distributions<var>processor_set</var>. The set of scheduling policies allowed for a
27*5e3eaea3SApple OSS Distributionsprocessor set is the set of policies allowed to be set for threads
28*5e3eaea3SApple OSS Distributionsassigned to that processor set. The current set of permitted policies
29*5e3eaea3SApple OSS Distributionscan be obtained from <strong>processor_set_info</strong>.
30*5e3eaea3SApple OSS Distributions<h3>RETURN VALUES</h3>
31*5e3eaea3SApple OSS Distributions<p>
32*5e3eaea3SApple OSS DistributionsOnly generic errors apply.
33*5e3eaea3SApple OSS Distributions<h3>RELATED INFORMATION</h3>
34*5e3eaea3SApple OSS Distributions<p>
35*5e3eaea3SApple OSS DistributionsFunctions:
36*5e3eaea3SApple OSS Distributions<a href="processor_set_info.html">processor_set_info</a>,
37*5e3eaea3SApple OSS Distributions<a href="P_set_policy_disable.html">processor_set_policy_disable</a>,
38*5e3eaea3SApple OSS Distributions<a href="thread_policy.html">thread_policy</a>.
39