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

 


IOPMPowerSource.h

Includes:

Overview



Functions

powerSource

Creates a new IOPMPowerSource nub. Must be attached to IORegistry, and registered by provider.

updateStatus

Must be called by physical battery controller when battery state has changed significantly.


powerSource


Creates a new IOPMPowerSource nub. Must be attached to IORegistry, and registered by provider.

static IOPMPowerSource *powerSource(
    void);  


updateStatus


Must be called by physical battery controller when battery state has changed significantly.

virtual void updateStatus(
    void);  
Discussion

The system will not poll this object for battery updates. Rather \ the battery's controller must call updateStatus() every time state changes \ and the settings will be relayed to higher levels of power management. \ The subclassing driver should override this only if the driver needs to add \ new settings to the base class.


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