2 .\" Copyright (c) 2005, 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 DOOR_RETURN 3C "Mar 22, 2005"
8 door_return \- return from a door invocation
12 \fBcc\fR \fB-mt\fR [ \fIflag\fR... ] \fIfile\fR... [ \fIlibrary\fR... ]
15 \fBint\fR \fBdoor_return\fR(\fBchar *\fR\fIdata_ptr\fR, \fBsize_t\fR \fIdata_size\fR, \fBdoor_desc_t *\fR\fIdesc_ptr\fR,
16 \fBuint_t\fR \fInum_desc\fR);
21 The \fBdoor_return()\fR function returns from a door invocation. It returns
22 control to the thread that issued the associated \fBdoor_call()\fR and blocks
23 waiting for the next door invocation. See \fBdoor_call\fR(3C). Results, if any,
24 from the door invocation are passed back to the client in the buffers pointed
25 to by \fIdata_ptr\fR and \fIdesc_ptr\fR. If there is not a client associated
26 with the \fBdoor_return()\fR, the calling thread discards the results, releases
27 any passed descriptors with the \fBDOOR_RELEASE\fR attribute, and blocks
28 waiting for the next door invocation.
31 Upon successful completion, \fBdoor_return()\fR does not return to the calling
32 process. Otherwise, \fBdoor_return()\fR returns \fB\(mi1\fR to the calling
33 process and sets \fBerrno\fR to indicate the error.
36 The \fBdoor_return()\fR function fails and returns to the calling process if:
43 Arguments were too big for client.
52 The address of \fIdata_ptr\fR or \fIdesc_ptr\fR is invalid.
61 Invalid \fBdoor_return()\fR arguments were passed or a thread is bound to a
62 door that no longer exists.
71 The client has too many open descriptors.
76 See \fBattributes\fR(5) for descriptions of the following attributes:
84 ATTRIBUTE TYPE ATTRIBUTE VALUE
88 Interface Stability Stable
95 \fBdoor_call\fR(3C), \fBattributes\fR(5)