MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                   ddigetktdid(9F)



NAME
     ddigetktdid - get identifier of current thread

SYNOPSIS
     #include 
     #include 
     #include 



     ktdidt ddigetktdid(void);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI)

DESCRIPTION
     The ddigetktdid() function returns a unique 64-bit  iden-
     tifier for the currently running thread.

CONTEXT
     This routine can be called from user, kernel,  or  interrupt
     context.  This  routine  cannot  be called from a high-level
     interrupt context.

RETURN VALUES
     ddigetktdid()  always  returns  the  identifier  for  the
     current thread. There are no error conditions.

SEE ALSO
     Writing Device Drivers

NOTES
     The value returned by this function can also be seen in  adb
     or  mdb  as  the  did  field displayed when using the thread
     macro.


     This interface is intended for tracing  and  debugging  pur-
     poses.















SunOS 5.11          Last change: 15 May 2001                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™