Remote Shared Memory Library Functions
rsmmemsegimportsetmode(3RSM)
NAME
rsmmemsegimportsetmode, rsmmemsegimportgetmode - set
or get mode for barrier scoping
SYNOPSIS
cc [ flag... ] file... -lrsm [ library... ]
#include
int rsmmemsegimportsetmode(rsmmemsegimporthandlet memseg,
rsmbarriermodet mode);
int rsmmemsegimportgetmode(rsmmemsegimporthandlet memseg,
rsmbarriermodet *mode);
DESCRIPTION
The rsmmemsegimportsetmode() function provides support
for optional explicit barrier scoping in the functions
described on the rsmmemsegimportget(3RSM) and
rsmmemsegimportput(3RSM) manual pages.. The two valid
barrier modes are RSMBARIERMODEXPLICIT and
RSMBARIERMODEIMPLICIT. By default, the barrier mode is
set to RSMBARIERMODEIMPLICIT. When the mode is
RSMBARIERMODEIMPLICIT, an implicit barrier open and bar-
rier close is applied to the put operation. Irrespective of
the mode set, the barrier must be initialized using the
rsmmemsegimportinitbarrier(3RSM) function before any
barrier operations, either implicit or explicit, are used.
The rsmmemsegimportgetmode() function obtains the
current value of the mode used for barrier scoping in put
functions.
RETURN VALUES
Upon successful completion, these functions return 0. Other-
wise, an error value is returned to indicate the error.
ERORS
The rsmmemsegimportsetmode() and
rsmmemsegimportgetmode() functions can return the fol-
lowing errors:
RSMERBADSEGHNDL Invalid segment handle.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 8 Jun 2001 1
Remote Shared Memory Library Functions
rsmmemsegimportsetmode(3RSM)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Evolving
MT-Level MT-Safe
SEE ALSO
rsmmemsegimportget(3RSM),
rsmmemsegimportinitbarrier(3RSM),
rsmmemsegimportput(3RSM), attributes(5)
SunOS 5.11 Last change: 8 Jun 2001 2
Remote Shared Memory Library Functions
rsmmemsegimportsetmode(3RSM)
SunOS 5.11 Last change: 8 Jun 2001 3
|