Remote Shared Memory Library Functions
rsm_memseg_import_init_barrier(3RSM)
NAME
rsm_memseg_import_init_barrier,
rsm_memseg_import_destroy_barrier - create or destroy bar-
rier for imported segmentSYNOPSIS
cc [ flag... ] file... -lrsm [ library... ]
#include
int rsm_memseg_import_init_barrier(
rsm_memseg_import_handle_t memseg, rsm_barrier_type_t type,
rsmapi_barrier_t *barrier);
int rsm_memseg_import_destroy_barrier(rsmapi_barrier_t *barrier);
DESCRIPTION
The rsm_memseg_import_init_barrier() function creates a bar-
rier for the imported segment specified by memseg. The bar-
rier type is specified by the type argument. Currently, onlyRSM_BAR_DEFAULT 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 rsm_memseg_import_destroy_barrier() 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.ERRORS
The rsm_memseg_import_init_barrier() and
rsm_memseg_import_destroy_barrier() functions can return the
following errors:RSMERR_BAD_SEG_HNDL Invalid segment handle.
RSMERR_BAD_BARRIER_PTR Invalid barrier pointer.
The rsm_memseg_import_init_barrier() function can return the
following errors:RSMERR_INSUFFICIENT_MEM Insufficient memory.
SunOS 5.11 Last change: 8 Jun 2001 1
Remote Shared Memory Library Functionsrsm_memseg_import_init_barrier(3RSM)
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
rsm_memseg_import_open_barrier(3RSM),
rsm_memseg_import_set_mode(3RSM), attributes(5)
SunOS 5.11 Last change: 8 Jun 2001 2
Remote Shared Memory Library Functionsrsm_memseg_import_init_barrier(3RSM)
SunOS 5.11 Last change: 8 Jun 2001 3