Site icon EfmSoft

What does macOS kernel return 28 (KERN_INVALID_POLICY) mean?

 
Could be also:
ConstantTypeOS
ERROR_OUT_OF_PAPERWin32 errorWindows
ippStsAffineQuadChangedIntel Ipp StatusAny
ENOSPCerrnoAny
PFN_REFERENCE_COUNTBugCheck CodeWindows
Previous Next
KERN_POLICY_LIMIT KERN_INVALID_OBJECT

KERN_INVALID_POLICY

The policy is not available in this context

KERN_INVALID_POLICY is a Mach scheduler result, not a statement that the policy-data pointer is malformed. The declaration in kern_return.h describes a scheduling policy that is not currently enabled for the processor-set context. In current XNU code, the same result is also used when a thread is not allowed to enter a requested real-time mode or when affinity sets are disabled.

That makes the policy flavor essential diagnostic data. A request that is valid on one system, thread class, or workload context can be unavailable on another without any change to the structure layout.

Two concrete policy contexts

Separate availability from bad input

ResultWhat it points to
This resultThe policy cannot be applied in the target’s current scheduling context.
KERN_POLICY_LIMITThe requested attributes exceed a limit even though the policy is applicable.
KERN_INVALID_ARGUMENTThe call contract is wrong: for example, an invalid target, flavor, count, or field value.
KERN_NOT_SUPPORTEDThe selected facility is not supported by the current platform or implementation.

Useful investigation data

References


Looking for a different code? Search another status or error code.

Exit mobile version