rsm_memseg_import_connect, rsm_memseg_import_disconnect - 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:
0400
0200
0600
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:
RSMERR_BAD_SEG_HNDL
The rsm_memseg_import_connect() function can return the following errors:
RSMERR_BAD_CTLR_HNDL
RSMERR_CTLR_NOT_PRESENT
RSMERR_PERM_DENIED
RSMERR_INSUFFICIENT_MEM
RSMERR_INSUFFICIENT_RESOURCES
RSMERR_SEG_NOT_PUBLISHED_TO_NODE
RSMERR_SEG_NOT_PUBLISHED
RSMERR_BAD_ADDR
RSMERR_REMOTE_NODE_UNREACHABLE
RSMERR_INTERRUPTED
The rsm_memseg_import_disconnect() function can return the following errors:
RSMERR_SEG_STILL_MAPPED
RSMERR_POLLFD_IN_USE
See attributes(5) for descriptions of the following attributes:
|
rsm_memseg_import_map(3RSM), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |