2 .\" Copyright (c) 1998 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 TD_TA_MAP_ADDR2SYNC 3C_DB "Oct 20, 1998"
8 td_ta_map_addr2sync \- get a synchronization object handle from a
9 synchronization object's address
13 cc [ \fIflag\fR... ] \fIfile\fR... -lc_db [ \fIlibrary\fR... ]
14 #include <proc_service.h>
15 #include <thread_db.h>
17 \fB\fR\fBtd_ta_map_addr2sync\fR(\fBconst td_thragent_t *\fR\fIta_p\fR, \fBpsaddr_t\fR \fIaddr\fR, \fBtd_synchandle_t *\fR\fIsh_p\fR);
23 The \fBtd_ta_map_addr2sync()\fR function produces the synchronization object
24 handle of type \fBtd_synchandle_t\fR that corresponds to the address of the
25 synchronization object (mutex, semaphore, condition variable, or reader/writer
26 lock). Some effort is made to validate \fIaddr\fR and verify that it does
27 indeed point at a synchronization object. The handle is returned in
36 The call completed successfully.
45 An invalid internal process handle was passed.
54 There is a \fINULL\fR external process handle associated with this internal
64 The \fIsh_p\fR argument is \fINULL\fR or \fIaddr\fR does not appear to point
65 to a valid synchronization object.
74 A call to one of the imported interface routines failed.
83 \fBaddr\fR is \fINULL,\fR or a \fBlibc_db\fR internal error occurred.
89 See \fBattributes\fR(5) for description of the following attributes:
97 ATTRIBUTE TYPE ATTRIBUTE VALUE
105 \fBlibc_db\fR(3LIB), \fBattributes\fR(5)