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_ID2THR 3C_DB "Oct 20, 1998"
8 td_ta_map_id2thr, td_ta_map_lwp2thr \- convert a thread ID or LWP ID to a
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_id2thr\fR(\fBconst td_thragent_t *\fR\fIta_p\fR, \fBthread_t tid,td_thrhandle_t *\fR\fIth_p\fR);
22 \fB\fR\fBtd_ta_map_lwp2thr\fR(\fBconst td_thragent_t *\fR\fIta_p\fR, \fBlwpid_t lwpid,td_thrhandle_t *\fR\fIth_p\fR);
28 The \fBtd_ta_map_id2thr()\fR function produces the \fBtd_thrhandle_t\fR thread
29 handle that corresponds to a particular thread ID, as returned by
30 \fBthr_create\fR(3C) or \fBthr_self\fR(3C). The thread handle is returned in
34 The \fBtd_ta_map_lwp2thr()\fR function produces the \fBtd_thrhandle_t\fR thread
35 handle for the thread that is currently executing on the light weight process (
36 \fBLWP\fR) and has an ID of \fBlwpid\fR.
44 The call completed successfully.
53 An invalid internal process handle was passed in.
62 There is a \fINULL\fR external process handle associated with this internal
72 A call to one of the imported interface routines failed.
81 Either there is no thread with the given thread ID ( \fBtd_ta_map_id2thr\fR) or
82 no thread is currently executing on the given \fBLWP\fR (
83 \fBtd_ta_map_lwp2thr\fR).
92 The call did not complete successfully.
98 See \fBattributes\fR(5) for description of the following attributes:
106 ATTRIBUTE TYPE ATTRIBUTE VALUE
114 \fBlibc_db\fR(3LIB), \fBthr_create\fR(3C), \fBthr_self\fR(3C),