PMOPENCONTEXT(3) | PMOPENCONTEXT(3) |
int pmOpenContext(pmDevice *pmd, int ctx_num, pmContext **pmcp);
pmDevice * |
pmd |
pmDevice object |
|
int |
ctx_num |
Context number | |
pmContext ** |
pmcp |
pmContext object |
pmOpenContext
() opens a pmContext
object specfied
by ctx_num
from a pmDevice pmd
.
INIT_CONTEXT
macro.
PM_SUCCESS |
Success |
EINVAL |
ctx_num is out of range |
EBUSY |
Context is already opened |
ENOMEM |
Not enough memory |
EIO |
Internal error |