Contents

controllerWillChangePowerState

Handles a notification that the network controller servicing this interface object is about to transition to a new power state.

Declaration

virtual IOReturn controllerWillChangePowerState( 
 IONetworkController *controller, 
 IOPMPowerFlagsflags, 
 UInt32stateNumber, 
 IOService *policyMaker);

Parameters

  • controller:

    The network controller object.

  • flags:

    Flags that describe the capability of the controller in the new power state.

  • stateNumber:

    An index to a state in the network controller's power state array that the controller is switching to.

  • policyMaker:

    A reference to the network controller's policy-maker, and is also the originator of this notification.

Return Value

Always returns kIOReturnSuccess.

Overview

If the controller is about to transition to an unusable state, and it is currently enabled, then the disable() method on the controller is called.

See Also

Miscellaneous