2 .\" Copyright (c) 2002 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_INTR_SIGNAL_POST 3RSM "April 9, 2016"
8 rsm_intr_signal_post, rsm_intr_signal_wait \- signal or wait for an event
12 cc [ \fIflag\fR... ] \fIfile\fR... -lrsm [ \fIlibrary\fR... ]
15 \fBint\fR \fBrsm_intr_signal_post\fR(\fBvoid *\fR\fImemseg\fR, \fBuint_t\fR \fIflags\fR);
20 \fBint\fR \fBrsm_intr_signal_wait\fR(\fBvoid *\fR\fImemseg\fR, \fBint\fR \fItimeout\fR);
25 The \fBrsm_intr_signal_post()\fR and \fBrsm_intr_signal_wait()\fR functions
26 are event functions that allow synchronization between importer processes and
27 exporter processes. A process may block to wait for an event occurrence by
28 calling \fBrsm_intr_signal_wait()\fR. A process can signal a waiting process
29 when an event occurs by calling \fBrsm_intr_signal_post()\fR.
32 The \fBrsm_intr_signal_post()\fR function signals an event occurrence. Either an
33 import segment handle (\fBrsm_memseg_import_handle_t\fR) or an export segment
34 handle (\fBrsm_memseg_export_handle_t\fR) may be type cast to a void pointer
35 for the \fImemseg\fR argument. If \fImemseg\fR refers to an import handle, the
36 exporting process is signalled. If \fImemseg\fR refers to an export handle, all
37 importers of that segment are signalled. The \fIflags\fR argument may be set to
38 \fBRSM_SIGPOST_NO_ACCUMULATE\fR; this will cause this event to be discarded if
39 an event is already pending for the target segment.
42 The \fBrsm_intr_signal_wait()\fR function allows a process to block and wait
43 for an event occurrence. Either an import segment handle
44 (\fBrsm_memseg_import_handle_t\fR) or an export segment handle
45 (\fBrsm_memseg_export_handle_t\fR) may be type cast to a void pointer for the
46 \fImemseg\fR argument. The process blocks for up to \fItimeout\fR milliseconds
47 for an event to occur; if the timeout value is -1, the process blocks until an
48 event occurs or until interrupted.
51 Upon successful completion, these functions return 0. Otherwise, an error
52 value is returned to indicate the error.
55 The \fBrsm_intr_signal_post()\fR and \fBrsm_intr_signal_wait()\fR functions
56 can return the following error:
60 \fB\fBRSMERR_BAD_SEG_HNDL\fR \fR
63 Invalid segment handle.
68 The \fBrsm_intr_signal_post()\fR function can return the following error:
72 \fB\fBRSMERR_CONN_ABORTED\fR \fR
82 \fB\fBRSMERR_REMOTE_NODE_UNREACHABL\fR \fR
86 Remote node not reachable.
91 The \fBrsm_intr_signal_wait()\fR function can return the following errors:
95 \fB\fBRSMERR_INTERRUPTED\fR \fR
104 \fB\fBRSMERR_TIMEOUT\fR \fR
112 See \fBattributes\fR(5) for descriptions of the following attributes:
120 ATTRIBUTE TYPE ATTRIBUTE VALUE
122 Interface Stability Evolving
129 \fBrsm_memseg_get_pollfd\fR(3RSM), \fBattributes\fR(5)