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