host_processorsgets send rights to the processor port for each processor existing on host_priv. This is the privileged port that allows its holder to control a processor.
processor_list is an array that is created as a result of this call. The caller may wish to
vm_deallocatethis array when the data is no longer needed. processor_count is set to the number of processors in the processor_list.
This function returns
KERN_SUCCESSif the call succeeded,
KERN_INVALID_ARGUMENTif host_priv is not a privileged host port, and
KERN_INVALID_ADDRESSif processor_count points to inaccessible memory.