Back to Darwin Xnu

P Set Policy Enable

osfmk/man/P_set_policy_enable.html

latest1.1 KB
Original Source

processor_set_policy_enable


Function - Enables a scheduling policy for a processor set.

SYNOPSIS

**#include&lt mach/mach\_host.h&gt**** kern\_return\_t processor\_set\_policy\_enable****(processor\_set\_t**processor\_set, **int** policy**);**

PARAMETERS

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.

DESCRIPTION

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.

RETURN VALUES

Only generic errors apply.

Functions: processor_set_info, processor_set_policy_disable, thread_policy.