Re: How to get a kthread ID?

2007-10-25 Thread Julian Elischer
Dag-Erling Smørgrav wrote: Sergey Matveychuk <[EMAIL PROTECTED]> writes: Is there a possibility to get a kthread ID inside a kthread? Just like pthread_self(3). curthread? well that's a thread pointer, but you are I guess correct because from there you can get to curthread->td_tid which is t

Re: How to get a kthread ID?

2007-10-25 Thread Marc Lörner
On Thursday 25 October 2007 11:02, Sergey Matveychuk wrote: > Is there a possibility to get a kthread ID inside a kthread? > Just like pthread_self(3). In function kthread_exit there you see that you can obtain the thread-structure with curthread. And then in this thread-structure is the field t

Re: How to get a kthread ID?

2007-10-25 Thread Dag-Erling Smørgrav
Sergey Matveychuk <[EMAIL PROTECTED]> writes: > Is there a possibility to get a kthread ID inside a kthread? > Just like pthread_self(3). curthread? DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://list

How to get a kthread ID?

2007-10-25 Thread Sergey Matveychuk
Is there a possibility to get a kthread ID inside a kthread? Just like pthread_self(3). -- Dixi. Sem. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECT