sPowerManagement
The sPowerManagement method is a static C-function which is called using mach's thread_call API. It guarantees us a thread of execution which is different than the power management thread and the workloop thread on which we can issue commands to the device synchronously or asynchronously without worrying about deadlocks. It calls through to HandlePowerChange, which is a state machine used to direct power management.
Declaration
static void sPowerManagement (
thread_call_param_twhichDevice );Parameters
- whichDevice:
The 'this' pointer.
Overview
The sPowerManagement method is a static C-function which is called using mach's thread_call API. It guarantees us a thread of execution which is different than the power management thread and the workloop thread on which we can issue commands to the device synchronously or asynchronously without worrying about deadlocks. It calls through to HandlePowerChange, which is a state machine used to direct power management.
See Also
Miscellaneous
AbortCommandAbortTaskAbortTaskSetCheckPowerStateClearACAClearTaskSetExecuteCommandfinalizefreeGetCommandGateGetInitialPowerStateGetUserClientExclusivityStateHandleCheckPowerState()HandleCheckPowerState(UInt32)HandleCheckPowerState(void)HandleGetUserClientExclusivityStateHandlePowerChangeHandleProtocolServiceFeatureHandleSetPowerStateHandleSetUserClientExclusivityStateInitializePowerManagementinitialPowerStateForDomainStateIsPowerManagementIntializedIsProtocolServiceSupportedLogicalUnitResetsetPowerStateSetUserClientExclusivityStatesGetPowerTransistionInProgresssGetUserClientExclusivityStatesHandleCheckPowerStatesHandleSetPowerStatesSetUserClientExclusivityStatestartTargetResetTicklePowerManager()TicklePowerManager(UInt32)TicklePowerManager(void)willTerminate