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_CONNECT 3RSM "Jun 8, 2001"
8 rsm_memseg_import_connect, rsm_memseg_import_disconnect \- create or break
9 logical commection between import and export segments
13 cc [ \fIflag\fR... ] \fIfile\fR... -lrsm [ \fIlibrary\fR... ]
16 \fBint\fR \fBrsm_memseg_import_connect\fR(
17 \fBrsmapi_controller_handle_t\fR \fIcontroller\fR,
18 \fBrsm_node_id_t\fR \fInodeid\fR, \fBrsm_memseg_id_t\fR \fIsegment_id\fR,
19 \fBrsm_permission_t\fR \fIperm\fR, \fBrsm_memseg_import_handle_t *\fR\fImemseg\fR);
24 \fBint\fR \fBrsm_memseg_import_disconnect\fR(
25 \fBrsm_memseg_import_handle_t\fR \fImemseg\fR);
31 The \fBrsm_memseg_import_connect()\fR function provides a means of creating an
32 import segment called \fImemseg\fR and establishing a logical connection with
33 an export segment identified by the \fIsegment_id\fR on the node specified by
34 \fInode_id\fR. The controller specified by \fIcontroller\fR must have a
35 physical connection with the controller (see
36 \fBrsm_get_interconnect_topology\fR(3RSM)) used while exporting the segment
37 identified by \fIsegment_id\fR on node specified by \fInode_id\fR. The
38 \fIperm\fR argument specifies the mode of access that the importer is
39 requesting for this connection. In the connection process, the mode of access
40 and the importers userid and groupid are compared with the access permissions
41 specified by the exporter. If the request mode is not valid, the connection
42 request is denied. The \fIperm\fR argument is limited to the following octal
73 The \fBrsm_memseg_import_disconnect()\fR function breaks the logical connection
74 between the import segment and the exported segment and deallocates the
75 resources associated with the import segment handle \fImemseg\fR.
79 Upon successful completion, these functions return 0. Otherwise, an error value
80 is returned to indicate the error.
84 The \fBrsm_memseg_import_connect()\fR and \fBrsm_memseg_import_disconnect()\fR
85 functions can return the following errors:
89 \fB\fBRSMERR_BAD_SEG_HNDL\fR \fR
92 Invalid segment handle.
97 The \fBrsm_memseg_import_connect()\fR function can return the following
102 \fB\fBRSMERR_BAD_CTLR_HNDL\fR \fR
106 Invalid controller handle.
112 \fB\fBRSMERR_CTLR_NOT_PRESENT\fR \fR
116 Controller not present.
122 \fB\fBRSMERR_PERM_DENIED\fR \fR
132 \fB\fBRSMERR_INSUFFICIENT_MEM\fR \fR
142 \fB\fBRSMERR_INSUFFICIENT_RESOURCES\fR \fR
146 Insufficient resources.
152 \fB\fBRSMERR_SEG_NOT_PUBLISHED_TO_NODE\fR \fR
156 Segment not published to node.
162 \fB\fBRSMERR_SEG_NOT_PUBLISHED\fR \fR
166 Segment not published at all.
172 \fB\fBRSMERR_BAD_ADDR\fR \fR
182 \fB\fBRSMERR_REMOTE_NODE_UNREACHABLE\fR \fR
186 Remote not not reachable.
192 \fB\fBRSMERR_INTERRUPTED\fR \fR
196 Connection interrupted.
201 The \fBrsm_memseg_import_disconnect()\fR function can return the following
206 \fB\fBRSMERR_SEG_STILL_MAPPED\fR \fR
209 Segment still mapped, need to unmap before disconnect.
215 \fB\fBRSMERR_POLLFD_IN_USE\fR \fR
218 Poll file descriptor in use.
224 See \fBattributes\fR(5) for descriptions of the following attributes:
232 ATTRIBUTE TYPE ATTRIBUTE VALUE
234 Interface Stability Evolving
242 \fBrsm_memseg_import_map\fR(3RSM), \fBattributes\fR(5)