osfmk/man/P_set_policy_enable.html
Function - Enables a scheduling policy for a processor set.
**#include< mach/mach\_host.h>**** kern\_return\_t processor\_set\_policy\_enable****(processor\_set\_t**processor\_set, **int** policy**);**
processor_set[in processor-set-control port] The control port for the processor set for which a scheduling policy is to be enabled. policy[in scalar] Policy to be enabled. The values currently defined are POLICY_TIMESHARE and POLICY_FIXEDPRI.
The processor_set_policy_enable function extends the set of scheduling policies allowed for processor_set. The set of scheduling policies allowed for a processor set is the set of policies allowed to be set for threads assigned to that processor set. The current set of permitted policies can be obtained from processor_set_info.
Only generic errors apply.
Functions: processor_set_info, processor_set_policy_disable, thread_policy.