Re: sosend() and mbuf
- From: Maslan <maslanbsd@xxxxxxxxx>
- Date: Tue, 4 Aug 2009 09:39:58 +0000
I'm getting crazy,
I don't know why kern_open() works in the module's main thread, but
when I use it in another thread created by kthread_create() it crashes
the kernel ???
On Tue, Aug 4, 2009 at 9:30 AM, Ed Schouten<ed@xxxxxxxx> wrote:
Hi,_______________________________________________
* Maslan <maslanbsd@xxxxxxxxx> wrote:
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
I am not sure, but sharing another process's address space doesn't have
to imply it shares the same pid, right?
--
Ed Schouten <ed@xxxxxxxx>
WWW: http://80386.nl/
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: sosend() and mbuf
- From: Julian Elischer
- Re: sosend() and mbuf
- From: Ed Schouten
- Re: sosend() and mbuf
- References:
- sosend() and mbuf
- From: Maslan
- Re: sosend() and mbuf
- From: Dag-Erling Smørgrav
- Re: sosend() and mbuf
- From: Dag-Erling Smørgrav
- Re: sosend() and mbuf
- From: Max Laier
- Re: sosend() and mbuf
- From: Maslan
- Re: sosend() and mbuf
- From: Ed Schouten
- sosend() and mbuf
- Prev by Date: Re: sosend() and mbuf
- Next by Date: Re: sosend() and mbuf
- Previous by thread: Re: sosend() and mbuf
- Next by thread: Re: sosend() and mbuf
- Index(es):
Relevant Pages
|