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-unsubscr...@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.
_______________________________________________
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"