setPowerState
Requests a power managed driver to change the power state of its device.
Declaration
virtual IOReturn setPowerState (
unsigned longpowerStateOrdinal,
IOService *whichDevice );Parameters
- powerStateOrdinal:
The number in the power state array to which the drive is being instructed to change.
- whichDevice:
A pointer to the power management object which registered to manage power for this device. The whichDevice field is not pertinent to us since the driver is both the "policy maker" for the device, and the "policy implementor" for the device.
Return Value
See IOService.h for details.
Overview
Requests a power managed driver to change the power state of its device. Most subclasses of IOSCSIProtocolInterface have class-specific mechanisms and should not override this routine. See IOSCSIProtocolServices.h, IOSCSIBlockCommandsDevice.h, IOSCSIReducedBlockCommandsDevice.h, and IOSCSIMultimediaCommandsDevice.h for more information about power management changes. Subclasses should not need to override this method.
See Also
Miscellaneous
AbortCommandAbortTaskAbortTaskSetCheckPowerStateClearACAClearTaskSetExecuteCommandfinalizefreeGetCommandGateGetInitialPowerStateGetUserClientExclusivityStateHandleCheckPowerState()HandleCheckPowerState(UInt32)HandleCheckPowerState(void)HandleGetUserClientExclusivityStateHandlePowerChangeHandleProtocolServiceFeatureHandleSetPowerStateHandleSetUserClientExclusivityStateInitializePowerManagementinitialPowerStateForDomainStateIsPowerManagementIntializedIsProtocolServiceSupportedLogicalUnitResetSetUserClientExclusivityStatesGetPowerTransistionInProgresssGetUserClientExclusivityStatesHandleCheckPowerStatesHandleSetPowerStatesPowerManagementsSetUserClientExclusivityStatestartTargetResetTicklePowerManager()TicklePowerManager(UInt32)TicklePowerManager(void)willTerminate