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_INIT_BARRIER 3RSM "Jun 8, 2001"
8 rsm_memseg_import_init_barrier, rsm_memseg_import_destroy_barrier \- create or
9 destroy barrier for imported segment
13 cc [ \fIflag\fR... ] \fIfile\fR... -lrsm [ \fIlibrary\fR... ]
16 \fBint\fR \fBrsm_memseg_import_init_barrier\fR(
17 \fBrsm_memseg_import_handle_t\fR \fImemseg\fR, \fBrsm_barrier_type_t\fR \fItype\fR,
18 \fBrsmapi_barrier_t *\fR\fIbarrier\fR);
23 \fBint\fR \fBrsm_memseg_import_destroy_barrier\fR(\fBrsmapi_barrier_t *\fR\fIbarrier\fR);
29 The \fBrsm_memseg_import_init_barrier()\fR function creates a barrier for the
30 imported segment specified by \fImemseg\fR. The barrier type is specified by
31 the \fItype\fR argument. Currently, only \fBRSM_BAR_DEFAULT\fR is supported as
32 a barrier type. A handle to the barrier is obtained through the \fIbarrier\fR
33 argument and is used in subsequent barrier calls.
36 The \fBrsm_memseg_import_destroy_barrier()\fR function deallocates all the
37 resources associated with the barrier.
41 Upon successful completion, these functions return 0. Otherwise, an error value
42 is returned to indicate the error.
46 The \fBrsm_memseg_import_init_barrier()\fR and
47 \fBrsm_memseg_import_destroy_barrier()\fR functions can return the following
52 \fB\fBRSMERR_BAD_SEG_HNDL\fR \fR
55 Invalid segment handle.
61 \fB\fBRSMERR_BAD_BARRIER_PTR\fR \fR
64 Invalid barrier pointer.
69 The \fBrsm_memseg_import_init_barrier()\fR function can return the following
74 \fB\fBRSMERR_INSUFFICIENT_MEM\fR \fR
83 See \fBattributes\fR(5) for descriptions of the following attributes:
91 ATTRIBUTE TYPE ATTRIBUTE VALUE
93 Interface Stability Evolving
101 \fBrsm_memseg_import_open_barrier\fR(3RSM),
102 \fBrsm_memseg_import_set_mode\fR(3RSM), \fBattributes\fR(5)