X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/743b15655a24ee3fe9f458f383003e011db0558f..13fec9890cf095cc781fdf7b8917cb03bf32dd4c:/osfmk/man/P_set_policy_disable.html diff --git a/osfmk/man/P_set_policy_disable.html b/osfmk/man/P_set_policy_disable.html index 5c391db21..80aec0ead 100755 --- a/osfmk/man/P_set_policy_disable.html +++ b/osfmk/man/P_set_policy_disable.html @@ -1 +1,50 @@ -

processor_set_policy_disable


Function - Disables a scheduling policy for a processor set.

SYNOPSIS

#include< mach/mach_host.h>

kern_return_t	processor_set_policy_disable
		(processor_set_t	processor_set,
		int	policy,
		boolean_t	change_threads);

PARAMETERS

processor_set
[in processor-set-control port] The control port for the processor set for which a scheduling policy is to be disabled.
policy
[in scalar] Policy to be disabled. The values currently defined are POLICY_TIMESHARE and POLICY_FIXEDPRI.
change_threads
[in scalar] If true, causes the scheduling policy for all threads currently running with policy to POLICY_TIMESHARE.

DESCRIPTION

The processor_set_policy_disable function restricts 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. Timesharing may not be forbidden for any processor set. This is a compromise to reduce the complexity of the assign operation; any thread whose policy is forbidden by its target processor set has its policy reset to timesharing. Disabling a scheduling policy for a processor set has no effect on threads currently assigned to that processor set unless change_threads is TRUE, in which case their policies will be reset to timesharing.

RETURN VALUES

Only generic errors apply.

RELATED INFORMATION

Functions: processor_set_policy_enable, processor_set_info, thread_policy. \ No newline at end of file +

processor_set_policy_disable

+
+

+Function - Disables a scheduling policy for a processor set. +

SYNOPSIS

+
+#include< mach/mach_host.h>
+
+kern_return_t	processor_set_policy_disable
+		(processor_set_t	processor_set,
+		int	policy,
+		boolean_t	change_threads);
+
+

PARAMETERS

+
+
processor_set +
+[in processor-set-control port] The control port for the processor set for which a scheduling policy is to be disabled. +
policy +
+[in scalar] Policy to be disabled. The values currently defined are POLICY_TIMESHARE and POLICY_FIXEDPRI. +
change_threads +
+[in scalar] If true, causes the scheduling policy for all threads currently running with policy to POLICY_TIMESHARE. +
+

DESCRIPTION

+

+The processor_set_policy_disable +function restricts 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. Timesharing may +not be forbidden for any processor set. This is a compromise to reduce +the complexity of the assign operation; any thread whose +policy is forbidden by its target processor set has its +policy reset to timesharing. Disabling a scheduling +policy for a processor set has no effect on threads +currently assigned to that processor set unless +change_threads is TRUE, in which case their policies will +be reset to timesharing. +

RETURN VALUES

+

+Only generic errors apply. +

RELATED INFORMATION

+

+Functions: +processor_set_policy_enable, +processor_set_info, +thread_policy.