Date: Tue, 04 Aug 2009 10:21:16 -0700 From: Julian Elischer <julian@elischer.org> To: Maslan <maslanbsd@gmail.com> Cc: Ed Schouten <ed@80386.nl>, FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: sosend() and mbuf Message-ID: <4A786E0C.8020201@elischer.org> In-Reply-To: <319cceca0908041008p2de4452duc55467abbb121e16@mail.gmail.com> References: <319cceca0908030119i3432a495ya60aa431dab0e1b1@mail.gmail.com> <86k51k4kvl.fsf@ds4.des.no> <86fxc84ksj.fsf@ds4.des.no> <200908040138.14743.max@love2party.net> <319cceca0908040227hf9a0f92jbf05b11e9f974994@mail.gmail.com> <20090804093036.GN1292@hoeg.nl> <319cceca0908040239k2accd7fen402db4c91687a267@mail.gmail.com> <4A786302.3090709@elischer.org> <319cceca0908041003o4c313bf6qff57a1f0b752b537@mail.gmail.com> <319cceca0908041008p2de4452duc55467abbb121e16@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Maslan wrote: > Guys, > > Here is the code, just scroll down and change kthread_create2() to > kthread_create() and it will crash > > NOTE: i'm still working on the socket part, u can commend it. > > Something wrong with proc0, and I can't figure it out > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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" The problem is that you are NOT on proc0 You have created your own kernel process and is DOES NOT have a file descriptor table. in 8.x this is all changed. using kthread_create2 creates a kernel thread attached to YOUR USER PROCESS. and YOU DO have a file descriptor table, as does proc0 as a special case of kernel process.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A786E0C.8020201>