Date: Thu, 25 Oct 2007 12:01:21 +0200 From: Marc =?utf-8?q?L=C3=B6rner?= <marc.loerner@hob.de> To: freebsd-hackers@freebsd.org Cc: Sergey Matveychuk <sem@FreeBSD.org> Subject: Re: How to get a kthread ID? Message-ID: <200710251201.21900.marc.loerner@hob.de> In-Reply-To: <47205B91.80408@FreeBSD.org> References: <47205B91.80408@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 td_tid. HTH, Marc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710251201.21900.marc.loerner>