|Skip Navigation Links|
|Exit Print View|
|man pages section 3: Extended Library Functions Oracle Solaris 10 8/11 Information Library|
- create or break logical commection between import and export segments
cc [ flag... ] file... –lrsm [ library... ] #include <rsmapi.h> int rsm_memseg_import_connect( rsmapi_controller_handle_t controller, rsm_node_id_t nodeid, rsm_memseg_id_t segment_id, rsm_permission_t perm, rsm_memseg_import_handle_t *memseg);
int rsm_memseg_import_disconnect( rsm_memseg_import_handle_t memseg);
The rsm_memseg_import_connect() function provides a means of creating an import segment called memseg and establishing a logical connection with an export segment identified by the segment_id on the node specified by node_id. The controller specified by controller must have a physical connection with the controller (see rsm_get_interconnect_topology(3RSM)) used while exporting the segment identified by segment_id on node specified by node_id. The perm argument specifies the mode of access that the importer is requesting for this connection. In the connection process, the mode of access and the importers userid and groupid are compared with the access permissions specified by the exporter. If the request mode is not valid, the connection request is denied. The perm argument is limited to the following octal values:
The rsm_memseg_import_disconnect() function breaks the logical connection between the import segment and the exported segment and deallocates the resources associated with the import segment handle memseg.
Upon successful completion, these functions return 0. Otherwise, an error value is returned to indicate the error.
The rsm_memseg_import_connect() and rsm_memseg_import_disconnect() functions can return the following errors:
Invalid segment handle.
The rsm_memseg_import_connect() function can return the following errors:
Invalid controller handle.
Controller not present.
Segment not published to node.
Segment not published at all.
Remote not not reachable.
The rsm_memseg_import_disconnect() function can return the following errors:
Segment still mapped, need to unmap before disconnect.
Poll file descriptor in use.
See attributes(5) for descriptions of the following attributes: