![]() |
![]() |
![]() |
![]() |
Provide a handle
#include <sys/pm.h>
typedef union {
int coid;
void *reserved;
} pm_hdl_t;
This data type provides a handle for communication with the power manager, and is returned by a successful pm_attach().
For example, you may implement a mechanism that allows deferred binding to the power manager to support power management of bootstrap devices that are used to load the power manager itself.
The PM_VALID_HDL macro is used to determine if a handle is valid:
#define PM_VALID_HDL(h) ((h).coid != -1)
![]() |
![]() |
![]() |
![]() |