Contents

initialPowerStateForDomainState

Determines which power state a device is in, given the current power domain state.

Declaration

virtual unsigned long initialPowerStateForDomainState(
 IOPMPowerFlagsdomainState );

Parameters

  • domainState:

    Flags that describe the character of "domain power"; they represent the outputPowerCharacter field of a state in the power domain's power state array.

Return Value

A state number.

Overview

Power management calls this method once, when the driver is initializing power management. Most drivers do not need to implement this method, and can rely upon the default IOService implementation. The IOService implementation scans the power state array looking for the highest state whose inputPowerRequirement field exactly matches the value of the domainState parameter. If more intelligent determination is required, the power managed driver should implement the method and override the superclass's implementation.

See Also

Miscellaneous