Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rsm_intr_signal_post(3rsm) [sunos man page]

rsm_intr_signal_post(3RSM)			      Remote Shared Memory Library Functions				rsm_intr_signal_post(3RSM)

NAME
rsm_intr_signal_post, rsm_intr_signal_wait - signal or wait for an event SYNOPSIS
cc [ flag... ] file... -lrsm [ library... ] #include <rsmapi.h> int rsm_intr_signal_post(void *memseg, uint_t flags); int rsm_intr_signal_wait(void *memseg, int timeout); DESCRIPTION
The rsm_intr_signal_post() and rsm_intr_signal_wait() functions are event functions that allow synchronization between importer processes and exporter processes. A process may block to wait for an event occurance by calling rsm_intr_signal_wait(). A process can signal a wait- ing process when an event occurs by calling rsm_intr_signal_post(). The rsm_intr_signal_post() function signals an event occurance. Either an import segment handle (rsm_memseg_import_handle_t) or an export segment handle (rsm_memseg_export_handle_t) may be type cast to a void pointer for the memseg argument. If memseg refers to an import han- dle, the exporting process is signalled. If memseg refers to an export handle, all importers of that segment are signalled. The flags argu- ment may be set to RSM_SIGPOST_NO_ACCUMULATE; this will cause this event to be discarded if an event is already pending for the target seg- ment. The rsm_intr_signal_wait() function allows a process to block and wait for an event occurance. Either an import segment handle (rsm_mem- seg_import_handle_t) or an export segment handle (rsm_memseg_export_handle_t) may be type cast to a void pointer for the memseg argument. The process blocks for up to timeout milliseconds for an event to occur; if the timeout value is -1, the process blocks until an event occurs or until interrupted. RETURN VALUES
Upon successful completion, these functions return 0. Otherwise, an error value is returned to indicate the error. ERRORS
The rsm_intr_signal_post() and rsm_intr_signal_wait() functions can return the following error: RSMERR_BAD_SEG_HNDL Invalid segment handle. The rsm_intr_signal_post() function can return the following error: RSMERR_CONN_ABORTED Connection aborted. RSMERR_REMOTE_NODE_UNREACHABL Remote node not reachable. The rsm_intr_signal_wait() function can return the following errors: RSMERR_INTERRUPTED Wait interrupted. RSMERR_TIMEOUT Timer expired. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
rsm_memseg_get_pollfd(3RSM), attributes(5) SunOS 5.10 7 Nov 2002 rsm_intr_signal_post(3RSM)

Check Out this Related Man Page

rsm_memseg_import_connect(3RSM) 		      Remote Shared Memory Library Functions			   rsm_memseg_import_connect(3RSM)

NAME
rsm_memseg_import_connect, rsm_memseg_import_disconnect - create or break logical commection between import and export segments SYNOPSIS
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); DESCRIPTION
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 read mode 0200 write mode 0600 read/write mode The rsm_memseg_import_disconnect() function breaks the logical connection between the import segment and the exported segment and deallo- cates the resources associated with the import segment handle memseg. RETURN VALUES
Upon successful completion, these functions return 0. Otherwise, an error value is returned to indicate the error. ERRORS
The rsm_memseg_import_connect() and rsm_memseg_import_disconnect() functions can return the following errors: RSMERR_BAD_SEG_HNDL Invalid segment handle. The rsm_memseg_import_connect() function can return the following errors: RSMERR_BAD_CTLR_HNDL Invalid controller handle. RSMERR_CTLR_NOT_PRESENT Controller not present. RSMERR_PERM_DENIED Permission denied. RSMERR_INSUFFICIENT_MEM Insufficient memory. RSMERR_INSUFFICIENT_RESOURCES Insufficient resources. RSMERR_SEG_NOT_PUBLISHED_TO_NODE Segment not published to node. RSMERR_SEG_NOT_PUBLISHED Segment not published at all. RSMERR_BAD_ADDR Bad address. RSMERR_REMOTE_NODE_UNREACHABLE Remote not not reachable. RSMERR_INTERRUPTED Connection interrupted. The rsm_memseg_import_disconnect() function can return the following errors: RSMERR_SEG_STILL_MAPPED Segment still mapped, need to unmap before disconnect. RSMERR_POLLFD_IN_USE Poll file descriptor in use. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
rsm_memseg_import_map(3RSM), attributes(5) SunOS 5.10 8 Jun 2001 rsm_memseg_import_connect(3RSM)
Man Page