[Previous] [Contents] [Index] [Next]

pm_hdl_t

Provide a handle

Synopsis:

#include <sys/pm.h>

typedef union {
   int     coid;
   void    *reserved;
}  pm_hdl_t;

Description:

This data type provides a handle for communication with the power manager, and is returned by a successful pm_attach().

coid
Connection id obtained by pm_attach()
reserved
Placeholder to allow this handle to be extended in the future to become a structure that contains more information than just a connection id.

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)

Classification:

See also:


[Previous] [Contents] [Index] [Next]