osfmk/man/host_processors.html
Function - Return a list of send rights representing all processor ports.
**kern\_return\_t host\_processors**** (host\_t **host\_priv,** processor\_port\_array\_t **processor\_list,** host\_priv **processor\_count** );**
host_priv[in host-control send right] The control port for the desired host.
processor_list[out pointer to dynamic array of processor send rights] The set of processors existing on host_priv; no particular order is guaranteed.
processor_count[out scalar] The number of ports returned in processor_list.
The host_processors function returns an array of send right ports for each processor existing on host_priv.
Only generic errors apply.
Functions: processor_start, processor_exit, processor_info, processor_control, host_processor_slots.