Contents

setPowerState

Called by the power management system in IOService when the power state of this service needs to change.

Declaration

virtual IOReturn setPowerState(
 unsigned longpowerStateOrdinal,
 IOService *device);

Parameters

  • powerStateOrdinal:

    The number of the power state as defined by the IOAudioDevice - 0 for sleep, 1 for wake.

  • device:

    The power management policy maker.

Return Value

Returns kIOPMAckImplied (0) when the power state change is complete. Otherwise the an upper bound on the number of microseconds until the state change is complete is returned.

Overview

The default implementation of IOAudioDevice sets up two power states for IOService to use. State 0 is sleep and state 1 is wake. This function should not be called directly. It is only supposed to be used by the IOService power management services.

See Also

Miscellaneous