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 "Nov 26, 2017"
8 rsm_memseg_import_connect, rsm_memseg_import_disconnect \- create or break
9 logical connection 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);
30 The \fBrsm_memseg_import_connect()\fR function provides a means of creating an
31 import segment called \fImemseg\fR and establishing a logical connection with
32 an export segment identified by the \fIsegment_id\fR on the node specified by
33 \fInode_id\fR. The controller specified by \fIcontroller\fR must have a
34 physical connection with the controller (see
35 \fBrsm_get_interconnect_topology\fR(3RSM)) used while exporting the segment
36 identified by \fIsegment_id\fR on node specified by \fInode_id\fR. The
37 \fIperm\fR argument specifies the mode of access that the importer is
38 requesting for this connection. In the connection process, the mode of access
39 and the importers userid and groupid are compared with the access permissions
40 specified by the exporter. If the request mode is not valid, the connection
41 request is denied. The \fIperm\fR argument is limited to the following octal
72 The \fBrsm_memseg_import_disconnect()\fR function breaks the logical connection
73 between the import segment and the exported segment and deallocates the
74 resources associated with the import segment handle \fImemseg\fR.
77 Upon successful completion, these functions return 0. Otherwise, an error value
78 is returned to indicate the error.
81 The \fBrsm_memseg_import_connect()\fR and \fBrsm_memseg_import_disconnect()\fR
82 functions can return the following errors:
86 \fB\fBRSMERR_BAD_SEG_HNDL\fR \fR
89 Invalid segment handle.
94 The \fBrsm_memseg_import_connect()\fR function can return the following
99 \fB\fBRSMERR_BAD_CTLR_HNDL\fR \fR
103 Invalid controller handle.
109 \fB\fBRSMERR_CTLR_NOT_PRESENT\fR \fR
113 Controller not present.
119 \fB\fBRSMERR_PERM_DENIED\fR \fR
129 \fB\fBRSMERR_INSUFFICIENT_MEM\fR \fR
139 \fB\fBRSMERR_INSUFFICIENT_RESOURCES\fR \fR
143 Insufficient resources.
149 \fB\fBRSMERR_SEG_NOT_PUBLISHED_TO_NODE\fR \fR
153 Segment not published to node.
159 \fB\fBRSMERR_SEG_NOT_PUBLISHED\fR \fR
163 Segment not published at all.
169 \fB\fBRSMERR_BAD_ADDR\fR \fR
179 \fB\fBRSMERR_REMOTE_NODE_UNREACHABLE\fR \fR
183 Remote not not reachable.
189 \fB\fBRSMERR_INTERRUPTED\fR \fR
193 Connection interrupted.
198 The \fBrsm_memseg_import_disconnect()\fR function can return the following
203 \fB\fBRSMERR_SEG_STILL_MAPPED\fR \fR
206 Segment still mapped, need to unmap before disconnect.
212 \fB\fBRSMERR_POLLFD_IN_USE\fR \fR
215 Poll file descriptor in use.
220 See \fBattributes\fR(5) for descriptions of the following attributes:
228 ATTRIBUTE TYPE ATTRIBUTE VALUE
230 Interface Stability Evolving
237 \fBrsm_memseg_import_map\fR(3RSM), \fBattributes\fR(5)