PMATTACHCONTEXT(3)
PM Programmer's Manual
PMATTACHCONTEXT(3)
NAME
pmAttachContext - create a context

SYNOPSIS
int pmAttachContext(char *type, int fd, pmContext **pmcp);

ARGUMENTS
char * type
IN
Type of context
int fd
IN
File descriptor of context
pmContext ** pmcp
OUT
pmContext object

IMPLEMENTATION LEVEL
BASE

DESCRIPTION
pmAttachContext() creates a pmContext object specified by type and fd , and attaches it to the calling process.

INTERNAL
Internal function is:
int attach_context(int fd, pmContext **pmcp);
The context must be initialized using the INIT_CONTEXT macro.

RETURN VALUES
PM_SUCCESS Success
ENODEV No such device
EINVAL Invalid file descriptor


$Id: pmAttachContext.html,v 1.1.1.1 2002/02/12 02:00:13 kameyama Exp $