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_INFO 3C "Mar 22, 2005"
8 door_info \- return information associated with a door descriptor
12 \fBcc\fR \fB-mt\fR [ \fIflag\fR... ] \fIfile\fR... [ \fIlibrary\fR... ]
15 \fBint\fR \fBdoor_info\fR(\fBint\fR \fId\fR, \fBstruct door_info *\fR\fIinfo\fR);
20 The \fBdoor_info()\fR function returns information associated with a door
21 descriptor. It obtains information about the door descriptor \fId\fR and places
22 the information that is relevant to the door in the structure pointed to by the
26 The \fBdoor_info\fR structure pointed to by the \fIinfo\fR argument contains
27 the following members:
31 pid_t di_target; /* door server pid */
32 door_ptr_t di_proc; /* server function */
33 door_ptr_t di_data; /* data cookie for invocation */
34 door_attr_t di_attributes; /* door attributes */
35 door_id_t di_uniquifier; /* unique id among all doors */
41 The \fBdi_target\fR member is the process \fBID\fR of the door server, or
42 \fB\(mi1\fR if the door server process has exited.
45 The values for \fBdi_attributes\fR may be composed of the following:
49 \fB\fBDOOR_LOCAL\fR\fR
52 The door descriptor refers to a service procedure in this process.
58 \fB\fBDOOR_UNREF\fR\fR
61 The door has requested notification when all but the last reference has gone
68 \fB\fBDOOR_UNREF_MULTI\fR\fR
71 Similar to \fBDOOR_UNREF\fR, except multiple unreferenced notifications may be
72 delivered for this door.
78 \fB\fBDOOR_IS_UNREF\fR\fR
81 There is currently only one descriptor referring to the door.
87 \fB\fBDOOR_REFUSE_DESC\fR\fR
90 The door refuses any attempt to \fBdoor_call\fR(3C) it with argument
97 \fB\fBDOOR_NO_CANCEL\fR\fR
100 Clients who abort a \fBdoor_call\fR(3C) call on this door will not cause the
101 \fBcancellation\fR(5) of the server thread handling the request.
107 \fB\fBDOOR_REVOKED\fR\fR
110 The door descriptor refers to a door that has been revoked.
116 \fB\fBDOOR_PRIVATE\fR\fR
119 The door has a separate pool of server threads associated with it.
124 The \fBdi_proc\fR and \fBdi_data\fR members are returned as \fBdoor_ptr_t\fR
125 objects rather than \fBvoid\fR \fB*\fR pointers to allow clients and servers to
126 interoperate in environments where the pointer sizes may vary in size (for
127 example, 32-bit clients and 64-bit servers). Each door has a system-wide unique
128 number associated with it that is set when the door is created by
129 \fBdoor_create()\fR. This number is returned in \fBdi_uniquifier\fR.
132 Upon successful completion, \fB0\fR is returned. Otherwise, \fB\(mi1\fR is
133 returned and \fBerrno\fR is set to indicate the error.
136 The \fBdoor_info()\fR function will fail if:
143 The address of argument \fIinfo\fR is an invalid address.
152 \fId\fR is not a door descriptor.
157 See \fBattributes\fR(5) for descriptions of the following attributes:
165 ATTRIBUTE TYPE ATTRIBUTE VALUE
169 Interface Stability Stable
176 \fBdoor_bind\fR(3C), \fBdoor_call\fR(3C), \fBdoor_create\fR(3C),
177 \fBdoor_server_create\fR(3C), \fBattributes\fR(5), \fBcancellation\fR(5)