Back to Darwin Xnu

Processor Info

osfmk/man/processor_info.html

latest1.3 KB
Original Source

processor_info


Function - Return information about a processor.

SYNOPSIS

**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** );**

PARAMETERS

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).

DESCRIPTION

The processor_info function returns selected information for a processor, as specified by flavor.

RETURN VALUES

Only generic errors apply.

Functions: processor_start, processor_exit, processor_control, host_processors.

Data Structures: processor_basic_info.