ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference

 


IOPowerConnection

Inherits from:
Declared In:

Overview



Functions

childHasRequestedPower

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

getAwaitingAck

Returns the awaitingAck variable.

getDesiredDomainState

Returns the desiredDomainState variable.

getPreventIdleSleepFlag

Returns the preventIdleSleepFlag variable.

getPreventSystemSleepFlag

Returns the preventSystemSleepFlag variable.

getReadyFlag

Returns the readyFlag variable.

parentCurrentPowerFlags

Returns the currentPowerFlags variable.

parentKnowsState

Returns the stateKnown variable.

setAwaitingAck

Sets the awaitingAck variable.

setChildHasRequestedPower

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

setDesiredDomainState

Sets the desiredDomainState variable.

setParentCurrentPowerFlags

Sets the currentPowerFlags variable.

setParentKnowsState

Sets the stateKnown variable.

setPreventIdleSleepFlag

Sets the preventIdleSleepFlag variable.

setPreventSystemSleepFlag

Sets the preventSystemSleepFlag variable.

setReadyFlag

Sets the readyFlag variable.


childHasRequestedPower


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

public

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.

public

bool getAwaitingAck ( void );
Discussion

Called by the parent.


getDesiredDomainState


Returns the desiredDomainState variable.

public

unsigned long getDesiredDomainState ( void );
Discussion

Called by the parent.


getPreventIdleSleepFlag


Returns the preventIdleSleepFlag variable.

public

bool getPreventIdleSleepFlag ( void );
Discussion

Called by the parent.


getPreventSystemSleepFlag


Returns the preventSystemSleepFlag variable.

public

bool getPreventSystemSleepFlag ( void );
Discussion

Called by the parent.


getReadyFlag


Returns the readyFlag variable.

public

bool getReadyFlag( void ) const;
Discussion

Called by the parent.


parentCurrentPowerFlags


Returns the currentPowerFlags variable.

public

IOPMPowerFlags parentCurrentPowerFlags ( void );


parentKnowsState


Returns the stateKnown variable.

public

bool parentKnowsState ( void );


setAwaitingAck


Sets the awaitingAck variable.

public

void setAwaitingAck ( bool );
Discussion

Called by the parent.


setChildHasRequestedPower


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

public

void setChildHasRequestedPower ( void );
Discussion

Called by the parent.


setDesiredDomainState


Sets the desiredDomainState variable.

public

void setDesiredDomainState ( unsigned long );
Discussion

Called by the parent.


setParentCurrentPowerFlags


Sets the currentPowerFlags variable.

public

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.

public

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.

public

void setPreventIdleSleepFlag ( unsigned long );
Discussion

Called by the parent.


setPreventSystemSleepFlag


Sets the preventSystemSleepFlag variable.

public

void setPreventSystemSleepFlag ( unsigned long );
Discussion

Called by the parent.


setReadyFlag


Sets the readyFlag variable.

public

void setReadyFlag( bool flag );
Discussion

Called by the parent.

Member Data


awaitingAck


protected

bool awaitingAck;
Discussion

True if child has not yet acked our notification; used by parent.


currentPowerFlags


protected

IOPMPowerFlags currentPowerFlags;
Discussion

Power flags which describe the current state of the power domain used by child.


desiredDomainState


protected

unsigned long desiredDomainState;
Discussion

State number which corresponds to the child's desire; used by parent.


parentKnowsState


See Also:

stateKnown

protected

bool stateKnown;
Discussion

True: parent knows state of its domain used by child.


preventIdleSleepFlag


protected

unsigned long preventIdleSleepFlag;
Discussion

True if child has this bit set in its desired state; used by parent.


preventSystemSleepFlag


protected

unsigned long preventSystemSleepFlag;
Discussion

True if child has this bit set in its desired state; used by parent.


readyFlag


protected

bool readyFlag;
Fields
readyFlag

true if the child has been added as a power child used by parent


requestFlag


protected

bool requestFlag;
Discussion

Set to true when desiredDomainState is set.


stateKnown


See Also:

parentKnowsState

protected

bool stateKnown;
Discussion

True: parent knows state of its domain used by child.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2008-12-19