PMATTACHCONTEXT(3) | PMATTACHCONTEXT(3) |
int pmAttachContext(char *type, int fd, pmContext **pmcp);
char * |
type |
Type of context | |
int |
fd |
File descriptor of context | |
pmContext ** |
pmcp |
pmContext object |
pmAttachContext
() creates a pmContext
object
specified by type
and fd
, and attaches it to the
calling process.
int attach_context(int fd, pmContext **pmcp);
The context must be initialized using the INIT_CONTEXT
macro.
PM_SUCCESS |
Success |
ENODEV |
No such device |
EINVAL |
Invalid file descriptor |