setPowerStateAction
IOCommandGate Action which calls protectedSetPowerState() while holding the IOCommandGate
Declaration
static IOReturn setPowerStateAction(
OSObject *owner,
void *arg1,
void *arg2,
void *arg3,
void *arg4);Parameters
- owner:
The owner of the IOCommandGate (the IOAudioDevice in this case)
- arg1:
The powerStateOrdinal to be passed to protectedSetPowerState()
- arg2:
The device to be passed to protectedSetPowerState()
Return Value
Returns the result of protectedSetPowerState()
Overview
This is needed to allow protectedSetPowerState() to be called on the IOWorkLoop
See Also
Miscellaneous
activateAudioEngine(IOAudioEngine *)activateAudioEngine(IOAudioEngine *, bool)addTimerEventattachAudioPortaudioEngineStartingaudioEngineStoppedcompletePowerStateChangecompletePowerStateChangeActiondeactivateAllAudioEnginesdetachAllAudioPortsdispatchTimerEventsflushAudioControlsfreegetCommandGategetPendingPowerStategetPowerStategetWorkLoopinitinitHardwareinitiatePowerStateChangeperformPowerStateChangeprotectedCompletePowerStateChangeprotectedSetPowerStateremoveAllTimerEventsremoveTimerEventsetConfigurationApplicationBundlesetDeviceCanBeDefaultsetDeviceNamesetDeviceShortNamesetFamilyManagePowersetIdleAudioSleepTimesetManufacturerNamesetPowerStatestartstoptimerFiredwaitForPendingPowerStateChange