osfmk/man/processor_info.html
Function - Return information about a processor.
**kern\_return\_t processor\_info**** (processor\_t **processor,** processor\_flavor\_t **flavor,** host\_t **host,** processor\_info\_t **processor\_info,** mach\_msg\_type\_number\_t **processor\_info\_count** );**
processor[in processor send right] A processor port for which information is desired. flavor[in scalar] The type of information requested. PROCESSOR_BASIC_INFO Basic information, slot number, running status, etc. The returned structure is processor_basic_info. host[out host-name send right] The host on which the processor resides. This is the host name port. processor_info[out structure] Information about the processor. processor_info_count[in/out scalar] On input, the maximum size of the buffer; on output, the size returned (in natural-sized units).
The processor_info function returns selected information for a processor, as specified by flavor.
Only generic errors apply.
Functions: processor_start, processor_exit, processor_control, host_processors.
Data Structures: processor_basic_info.