Date: Tue, 4 Aug 2009 09:27:06 +0000 From: Maslan <maslanbsd@gmail.com> To: Max Laier <max@love2party.net> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: sosend() and mbuf Message-ID: <319cceca0908040227hf9a0f92jbf05b11e9f974994@mail.gmail.com> In-Reply-To: <200908040138.14743.max@love2party.net> References: <319cceca0908030119i3432a495ya60aa431dab0e1b1@mail.gmail.com> <86k51k4kvl.fsf@ds4.des.no> <86fxc84ksj.fsf@ds4.des.no> <200908040138.14743.max@love2party.net>
next in thread | previous in thread | raw e-mail | index | archive | help
man kthread says: The kthread_create() function is used to create a kernel thread. The new thread shares its address space with process 0, the swapper process, a= nd runs in kernel mode only. However, when i checked the pid & tid of the new created thread it was not the same as the parent nor as the proc0 & thread0 simple printf() gives: swap procid=3D0, threadid=3D0 procid=3D1680, threadid=3D100089 procid=3D1681, threadid=3D100090 <--- created by kthread_create() 2009/8/3 Max Laier <max@love2party.net>: > On Tuesday 04 August 2009 00:03:40 Dag-Erling Sm=F8rgrav wrote: >> Dag-Erling Sm=F8rgrav <des@des.no> writes: >> > One thing that springs to mind is that kern_open() will dereference >> > td->td_proc, and AFAIK kthread_create() does not associate the thread >> > with a process. >> >> This is wrong, and contradicts what I wrote further down. Just ignore >> it. > > IIRC, kernel threads don't have root. > > -- > /"\ Best regards, | mlaier@freebsd.org > \ / Max Laier | ICQ #67774661 > X http://pf4freebsd.love2party.net/ | mlaier@EFnet > / \ ASCII Ribbon Campaign | Against HTML Mail and News > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?319cceca0908040227hf9a0f92jbf05b11e9f974994>