powerStateWillChangeTo
Handles notification that the network controller will change power state.
Declaration
virtual IOReturn powerStateWillChangeTo(
IOPMPowerFlagsflags,
unsigned longstateNumber,
IOService *policyMaker );Parameters
- flags:
Describe the capability of the controller in the new power state.
- stateNumber:
The number of the state in the state array that the controller is switching to.
- policyMaker:
The policy maker that manages the controller's power state.
Return Value
Returns the constant 3000000, to indicate a maximum of 3 seconds for the preparation to complete, and an acknowledgement delivered to the policy maker.
Overview
If the controller is about to become unusable, then the controller's handlers are unregistered, and the controller is disabled.