Power Manager Device Driver Functions (Compact 2013)
3/26/2014
Power Manager-aware device drivers use the following functions to request service from Power Manager.
Device Driver Functions
Function |
Description |
---|---|
Used by device drivers to request Power Manager to update their device power states. |
|
Used by bus drivers and other proxy power managers to intercept all power IOCTLs for a device. |
|
Terminates the proxy relationship initiated by a call to RegisterPowerRelationship. |
|
Notifies Power Manager of the events required for implementing a power policy. |
Typically, device drivers call the Power Manager DevicePowerNotify function to request device power state changes. Keyboard, keypad, and battery drivers typically call the PowerPolicyNotify function to notify Power Manager of events through message flags. For example, a keypad driver sends the PPN_POWERBUTTONPRESSED message to notify Power Manager when the power button is pressed.