kernel thread id

From: Yishai Hadas
Date: Mon Sep 17 2007 - 05:59:39 EST


Hi List,

I'm using NPTL multi-threaded library and kernel 2.4.

When a new thread is created using the pthread_create call the returned
thread handle is pthread_t.

I want to get the kernel thread id for this pthread - means similar to
what gettid returns when it's called by the thread itself.

How can achieve this information from the creator thread?



Any help is appreciated.

Yishai.

**********************************************************************************************

The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the
sender immediately and do not disclose the contents to anyone or make copies.
** eSafe scanned this email for viruses, vandals and malicious content **

**********************************************************************************************

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/