Next: Processors and Sets, Previous: Hosted Processors, Up: Processor Interface
Some multiprocessors may allow privileged software to control processors. The
processor_start,processor_exit, andprocessor_controloperations implement this. The interpretation of the command in cmd is machine dependent. A newly started processor is assigned to the default processor set. An exited processor is removed from the processor set to which it was assigned and ceases to be active.count contains the length of the command cmd as a number of ints.
Availability limited. All of these operations are machine-dependent. They may do nothing. The ability to restart an exited processor is also machine-dependent.
This function returns
KERN_SUCCESSif the operation was performed,KERN_FAILUREif the operation was not performed (a likely reason is that it is not supported on this processor),KERN_INVALID_ARGUMENTif processor is not a processor, andKERN_INVALID_ADDRESSif cmd points to inaccessible memory.