Gurol, The thread id and proces id are the same thing in the Linux 2.4. (All threads use a heavy weight process).
The kernel global variable "current" is a pointer to a struct task_struct that contains, amoung other things, the of the thread. current->pid will do what you want I think. --brian On Mon, 19 Jan 2004, Gurol Akman wrote: > > does linux or lis provide kernel applications with a means of > retrieving: > > > > (a) the thread id of the currently executing kernel thread; > > (b) the process id [if any] associated with the currently executing > kernel thread; > > > > thanks in advance. regards -- GA -- Brian F. G. Bidulock ¦ The reasonable man adapts himself to the ¦ [EMAIL PROTECTED] ¦ world; the unreasonable one persists in ¦ http://www.openss7.org/ ¦ trying to adapt the world to himself. ¦ ¦ Therefore all progress depends on the ¦ ¦ unreasonable man. -- George Bernard Shaw ¦ _______________________________________________ Linux-streams mailing list [EMAIL PROTECTED] http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams