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, and
     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=0, threadid=0
procid=1680, threadid=100089
procid=1681, threadid=100090   <--- created by kthread_create()





2009/8/3 Max Laier <m...@love2party.net>:
> On Tuesday 04 August 2009 00:03:40 Dag-Erling Smørgrav wrote:
>> Dag-Erling Smørgrav <d...@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,                      | mla...@freebsd.org
> \ /  Max Laier                          | ICQ #67774661
>  X   http://pf4freebsd.love2party.net/  | mla...@efnet
> / \  ASCII Ribbon Campaign              | Against HTML Mail and News
>
>
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to