2 .\" Copyright (c) 2001, 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 DDI_GET_KT_DID 9F "May 15, 2001"
8 ddi_get_kt_did \- get identifier of current thread
12 #include <sys/types.h>
14 #include <sys/sunddi.h>
18 \fBkt_did_t\fR \fBddi_get_kt_did\fR(\fB\fR\fIvoid\fR);
24 Solaris DDI specific (Solaris DDI)
28 The \fBddi_get_kt_did()\fR function returns a unique 64-bit identifier for the
29 currently running thread.
33 This routine can be called from user, kernel, or interrupt context. This
34 routine cannot be called from a high-level interrupt context.
38 \fBddi_get_kt_did()\fR always returns the identifier for the current thread.
39 There are no error conditions.
43 \fIWriting Device Drivers\fR
47 The value returned by this function can also be seen in \fBadb\fR or \fBmdb\fR
48 as the \fBdid\fR field displayed when using the \fBthread\fR macro.
51 This interface is intended for tracing and debugging purposes.