Registers and unregisters Power Management handle.
#include <sys/pm.h> int pm_register_handle(pmh, command) struct pm_handle *pmh; int command;
pmh | Points to a pm_handle structure. |
command | Specifies PM_REGISTER or PM_UNREGISTER. |
The pm_register_handle kernel service registers and unregisters a Power Management (PM) handle to a PM core. This kernel service need to be called from config entry point of each PM aware device driver.
PM_SUCCESS | Indicates successful completion. |
PM_ERROR | Indicates an error condition. |
The pm_register_handle kernel service is part of the Base Operating System (BOS) Runtime.
Related Information
The pm_control_parameter subroutine, pm_control_state subroutine, pm_event_query subroutine, pm_battery_control subroutine.
The pm_register_planar_control_handle kernel service, pm_planar_control kernel service.