Back to Darwin Xnu

Processor Control

osfmk/man/processor_control.html

latest1.1 KB
Original Source

processor_control


Function - Perform caller-specified operation on target processor. (Protected Interface.)

SYNOPSIS

**kern\_return\_t processor\_control**** (processor\_t **processor,** processor\_info\_t **cmd,** mach\_msg\_type\_number\_t\ ***count** );**

PARAMETERS

processor[in processor send right] The processor to be controlled. cmd[pointer to in array of natural-sized units] An array containing the command to be applied to the processor. count[in scalar] The size of the cmd array (in natural-sized units).

DESCRIPTION

The processor_control function allows privileged software to control a processor in a multi-processor that so allows it. The interpretation of cmd is machine dependent.

NOTES

These operations are machine dependent. They may do nothing.

RETURN VALUES

KERN_FAILURE The operation was not performed. A likely reason is that it is not supported on this processor.

Functions: processor_start, processor_exit, processor_info, host_processors.