1 <h2>processor_set_policy_disable
</h2>
4 <strong>Function
</strong> - Disables a scheduling policy for a processor set.
7 <strong>#include< mach/mach_host.h>
</strong>
9 <strong>kern_return_t processor_set_policy_disable
</strong>
10 <strong>(processor_set_t
</strong> <var>processor_set
</var>,
11 <strong>int
</strong> <var>policy
</var>,
12 <strong>boolean_t
</strong> <var>change_threads
</var><strong>);
</strong>
16 <dt> <var>processor_set
</var>
18 [in processor-set-control port] The control port for the processor set for which a scheduling policy is to be disabled.
19 <dt> <var>policy
</var>
21 [in scalar] Policy to be disabled. The values currently defined are POLICY_TIMESHARE and POLICY_FIXEDPRI.
22 <dt> <var>change_threads
</var>
24 [in scalar] If true, causes the scheduling policy for all threads currently running with policy to POLICY_TIMESHARE.
28 The
<strong>processor_set_policy_disable
</strong>
29 function restricts the set of scheduling policies allowed for
30 <var>processor_set
</var>. The set of scheduling policies allowed for a
31 processor set is the set of policies allowed to be set for threads
32 assigned to that processor set. The current set of permitted policies
33 can be obtained from
<strong>processor_set_info
</strong>. Timesharing may
34 not be forbidden for any processor set. This is a compromise to reduce
35 the complexity of the assign operation; any thread whose
36 <var>policy
</var> is forbidden by its target processor set has its
37 <var>policy
</var> reset to timesharing. Disabling a scheduling
38 <var>policy
</var> for a processor set has no effect on threads
39 currently assigned to that processor set unless
40 <var>change_threads
</var> is TRUE, in which case their policies will
41 be reset to timesharing.
42 <h3>RETURN VALUES
</h3>
44 Only generic errors apply.
45 <h3>RELATED INFORMATION
</h3>
48 <a href=
"P_set_policy_enable.html">processor_set_policy_enable
</a>,
49 <a href=
"processor_set_info.html">processor_set_info
</a>,
50 <a href=
"thread_policy.html">thread_policy
</a>.