[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: How to get a kthread ID?
From: Julian Elischer <julian () elischer ! org>
Date: 2007-10-25 20:37:53
Message-ID: 4720FEA1.2040505 () elischer ! org
[Download RAW message or body]
Dag-Erling Smørgrav wrote:
> Sergey Matveychuk <sem@FreeBSD.org> 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 the thread ID.
>
> DES
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic