sosend() and mbuf
Julian Elischer
julian at elischer.org
Tue Aug 4 17:20:58 UTC 2009
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at 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.
More information about the freebsd-hackers
mailing list