| Previous | Next |
| KERN_MEMORY_RESTART_COPY | KERN_POLICY_LIMIT |
KERN_INVALID_PROCESSOR_SET
Control port versus processor-set name
KERN_INVALID_PROCESSOR_SET is not a CPU-availability error. It means an operation requiring processor-set control privileges received a port that was not the required processor-set control port. In Mach, the type of access is represented by the particular port right, not by a generic integer identifier.
Processor-set control interfaces are privileged kernel-management facilities. Treat this result as an object-capability mismatch: a retry with the same port will not turn it into a control port.
What to inspect
- Identify whether the call expects a processor-set name, a processor-set control port, or a host port.
- Trace the source of the port through any privilege-brokering or MIG-generated wrapper.
- Check that the operation is being attempted in a context allowed to obtain the control interface.
- Do not substitute an arbitrary host-related port; acquire the interface through the API that creates the required right.
References
- Apple XNU: kern_return.h
- Mach Kernel Interface Reference: host_processor_set_priv
- Apple Kernel Programming Guide: Mach objects and port rights
Looking for a different code? Search another status or error code.
