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


CREDIT
This document is a part of the SCore cluster system software developed at PC Cluster Consortium, Japan. Copyright (C) 2003 PC Cluster Consortium.