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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software