Function

IOPMCopyCPUPowerStatus

Copy status of all current CPU power levels.

Declaration

IOReturn IOPMCopyCPUPowerStatus(CFDictionaryRef *cpuPowerStatus);

Parameters

cpuPowerStatus

Upon success, a pointer to a dictionary defining CPU power; otherwise NULL. Pointer will be populated with a newly created dictionary upon successful return. Caller must release dictionary.

Return Value

kIOReturnSuccess, or other error report. Returns kIOReturnNotFound if CPU PowerStatus has not been published.

Discussion

The returned dictionary may define some of these keys, as defined in IOPM.h: - kIOPMCPUPowerLimitProcessorSpeedKey - kIOPMCPUPowerLimitProcessorCountKey - kIOPMCPUPowerLimitSchedulerTimeKey

See Also

CPU Power & Thermal

IOPMGetThermalWarningLevel

Get thermal warning level of the system.