2 .\" Copyright (c) 2001 by Sun Microsystems, Inc. All rights reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH RSM_MEMSEG_IMPORT_OPEN_BARRIER 3RSM "April 9, 2016"
8 rsm_memseg_import_open_barrier, rsm_memseg_import_order_barrier,
9 rsm_memseg_import_close_barrier \- remote memory access error detection
14 cc [ \fIflag\fR... ] \fIfile\fR... -lrsm [ \fIlibrary\fR... ]
17 \fBint\fR \fBrsm_memseg_import_open_barrier\fR(\fBrsmapi_barrier_t *\fR\fIbarrier\fR);
22 \fBint\fR \fBrsm_memseg_import_order_barrier\fR(\fBrsmapi_barrier_t *\fR\fIbarrier\fR);
27 \fBint\fR \fBrsm_memseg_import_close_barrier\fR(\fBrsmapi_barrier_t *\fR\fIbarrier\fR);
32 The \fBrsm_memseg_import_open_barrier()\fR and
33 \fBrsm_memseg_import_close_barrier()\fR functions provide a means of remote
34 memory access error detection when the barrier mode is set to
35 \fBRSM_BARRIER_MODE_EXPLICIT\fR. Open and close barrier operations define a
36 span-of-time interval for error detection. A successful close barrier
37 guarantees that remote memory access covered between the open barrier and close
38 barrier have completed successfully. Any individual failures which may have
39 occurred between the open barrier and close barrier occur without any
40 notification and the failure is not reported until the close barrier.
43 The \fBrsm_memseg_import_order_barrier()\fR function imposes the order-of-write
44 completion whereby, with an order barrier, the write operations issued before
45 the order barrier are all completed before the operations after the order
46 barrier. Effectively, with the order barrier call, all writes within one
47 barrier scope are ordered with respect to those in another barrier scope.
50 Upon successful completion, these functions return 0. Otherwise, an error value
51 is returned to indicate the error.
54 The \fBrsm_memseg_import_open_barrier()\fR,
55 \fBrsm_memseg_import_order_barrier()\fR, and
56 \fBrsm_memseg_import_close_barrier()\fR functions can return the following
61 \fB\fBRSMERR_BAD_SEG_HNDL\fR \fR
64 Invalid segment handle
70 \fB\fBRSMERR_BAD_BARRIER_PTR\fR \fR
73 Invalid barrier pointer.
78 The \fBrsm_memseg_close_barrier()\fR and \fBrsm_memseg_order_barrier()\fR
79 functions can return the following errors:
83 \fB\fBRSMERR_BARRIER_UNINITIALIZED\fR \fR
87 Barrier not initialized.
93 \fB\fBRSMERR_BARRIER_NOT_OPENED\fR \fR
103 \fB\fBRSMERR_BARRIER_FAILURE\fR \fR
113 \fB\fBRSMERR_CONN_ABORTED\fR \fR
122 See \fBattributes\fR(5) for descriptions of the following attributes:
130 ATTRIBUTE TYPE ATTRIBUTE VALUE
132 Interface Stability Evolving
139 \fBrsm_memseg_import_init_barrier\fR(3RSM),
140 \fBrsm_memseg_import_set_mode\fR(3RSM), \fBattributes\fR(5)