Previous: Processors and Sets, Up: Processor Interface
processor_inforeturns the selected information array for a processor, as specified by flavor.
host is set to the host on which the processor set resides. This is the non-privileged host port.
processor_info is an array of integers that is supplied by the caller and returned filled with specified information. processor_info_count is supplied as the maximum number of integers in processor_info. On return, it contains the actual number of integers in processor_info. The maximum number of integers returned by any flavor is
The type of information returned is defined by flavor, which can be one of the following:
- The function returns basic information about the processor, as defined by
processor_basic_info_t. This includes the slot number of the processor. The number of integers returned is
Machines which require more configuration information beyond the slot number are expected to define additional (machine-dependent) flavors.
The function returns
KERN_SUCCESSif the call succeeded and
KERN_INVALID_ARGUMENTif processor is not a processor or flavor is not recognized. The function returns
MIG_ARRAY_TOO_LARGEif the returned info array is too large for processor_info. In this case, processor_info is filled as much as possible and processor_infoCnt is set to the number of elements that would have been returned if there were enough room.
This structure is returned in processor_info by the
processor_infofunction and provides basic information about the processor. You can cast a variable of type
processor_info_tto a pointer of this type if you provided it as the processor_info parameter for the
processor_info. It has the following members:
- cpu type
- cpu subtype
- is processor running?
- slot number
- is this the master processor