Remote Shared Memory Library Functions
rsmmemsegimportinitbarrier(3RSM)
NAME
rsmmemsegimportinitbarrier,
rsmmemsegimportdestroybarrier - create or destroy bar-
rier for imported segment
SYNOPSIS
cc [ flag... ] file... -lrsm [ library... ]
#include
int rsmmemsegimportinitbarrier(
rsmmemsegimporthandlet memseg, rsmbarriertypet type,
rsmapibarriert *barrier);
int rsmmemsegimportdestroybarrier(rsmapibarriert *barrier);
DESCRIPTION
The rsmmemsegimportinitbarrier() function creates a bar-
rier for the imported segment specified by memseg. The bar-
rier type is specified by the type argument. Currently, only
RSMBARDEFAULT is supported as a barrier type. A handle to
the barrier is obtained through the barrier argument and is
used in subsequent barrier calls.
The rsmmemsegimportdestroybarrier() function deallocates
all the resources associated with the barrier.
RETURN VALUES
Upon successful completion, these functions return 0. Other-
wise, an error value is returned to indicate the error.
ERORS
The rsmmemsegimportinitbarrier() and
rsmmemsegimportdestroybarrier() functions can return the
following errors:
RSMERBADSEGHNDL Invalid segment handle.
RSMERBADBARIERPTR Invalid barrier pointer.
The rsmmemsegimportinitbarrier() function can return the
following errors:
RSMERINSUFICIENTMEM Insufficient memory.
SunOS 5.11 Last change: 8 Jun 2001 1
Remote Shared Memory Library Functions
rsmmemsegimportinitbarrier(3RSM)
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Evolving
MT-Level MT-Safe
SEE ALSO
rsmmemsegimportopenbarrier(3RSM),
rsmmemsegimportsetmode(3RSM), attributes(5)
SunOS 5.11 Last change: 8 Jun 2001 2
Remote Shared Memory Library Functions
rsmmemsegimportinitbarrier(3RSM)
SunOS 5.11 Last change: 8 Jun 2001 3
|