IOPowerConnection

Inherits from
IOService
Availability
Available in OS X v10.0 and later.
Declared in
IOPowerConnection.h

Overview

Do not use IOPowerConnection. This class is an implementation detail defined for IOPM's management of the IORegistry IOPower plane.

Only Kernel IOKit power management should reference the IOPowerConnection class.

Tasks

Miscellaneous

Instance Methods

childHasRequestedPower

Return the flag that says whether the child has called requestPowerDomainState.

bool childHasRequestedPower ( void );
Discussion

Called by the PCI Aux Power Supply Driver to see if a device driver is power managed.

getAwaitingAck

Returns the awaitingAck variable.

bool getAwaitingAck ( void );
Discussion

Called by the parent.

getDesiredDomainState

Returns the desiredDomainState variable.

unsigned long getDesiredDomainState ( void );
Discussion

Called by the parent.

getPreventIdleSleepFlag

Returns the preventIdleSleepFlag variable.

bool getPreventIdleSleepFlag ( void );
Discussion

Called by the parent.

getPreventSystemSleepFlag

Returns the preventSystemSleepFlag variable.

bool getPreventSystemSleepFlag ( void );
Discussion

Called by the parent.

getReadyFlag

Returns the readyFlag variable.

bool getReadyFlag( void ) const;
Discussion

Called by the parent.

parentCurrentPowerFlags

Returns the currentPowerFlags variable.

IOPMPowerFlags parentCurrentPowerFlags ( void );

parentKnowsState

Returns the stateKnown variable.

bool parentKnowsState ( void );

setAwaitingAck

Sets the awaitingAck variable.

void setAwaitingAck ( bool );
Discussion

Called by the parent.

setChildHasRequestedPower

Set the flag that says that the child has called requestPowerDomainState.

void setChildHasRequestedPower ( void );
Discussion

Called by the parent.

setDesiredDomainState

Sets the desiredDomainState variable.

void setDesiredDomainState ( unsigned long );
Discussion

Called by the parent.

setParentCurrentPowerFlags

Sets the currentPowerFlags variable.

void setParentCurrentPowerFlags ( IOPMPowerFlags );
Discussion

Called by the parent when the object is created and called by the child when it discovers that the parent state is changing.

setParentKnowsState

Sets the stateKnown variable.

void setParentKnowsState ( bool );
Discussion

Called by the parent when the object is created and called by the child when it discovers that the parent now knows its state.

setPreventIdleSleepFlag

Sets the preventIdleSleepFlag variable.

void setPreventIdleSleepFlag ( unsigned long );
Discussion

Called by the parent.

setPreventSystemSleepFlag

Sets the preventSystemSleepFlag variable.

void setPreventSystemSleepFlag ( unsigned long );
Discussion

Called by the parent.

setReadyFlag

Sets the readyFlag variable.

void setReadyFlag( bool flag );
Discussion

Called by the parent.

Instance Variables

awaitingAck

bool awaitingAck;

used by parent

currentPowerFlags

IOPMPowerFlags currentPowerFlags;

used by child

desiredDomainState

unsigned long desiredDomainState;

used by parent

preventIdleSleepFlag

unsigned long preventIdleSleepFlag;

used by parent

preventSystemSleepFlag

unsigned long preventSystemSleepFlag;

used by parent

readyFlag

bool readyFlag;

used by parent

requestFlag

bool requestFlag;

set to true when desiredDomainState is set

stateKnown

bool stateKnown;

used by child