sosend() and mbuf
Ed Schouten
ed at 80386.nl
Tue Aug 4 09:56:51 UTC 2009
* Maslan <maslanbsd at gmail.com> wrote:
> > Is it possible to call kern_open() from within a kernel thread anyway?
> I think yes, It worked on the parent thread before creating a new kthread.
> See OpenKETA source, its using the same approach.
> > kern_open() depends on a file descriptor table, right?
> Yes, it returns a fd in the curthread->td_retval[0], which i should
> use within the same thread to deal with this file.
Didn't someone (Jeff Roberson?) develop some nice in-kernel API for
accessing files some years ago? Why not use that?
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090804/5123693f/attachment.pgp
More information about the freebsd-hackers
mailing list