Date: Tue, 4 Aug 2009 09:59:01 +0000 From: Maslan <maslanbsd@gmail.com> To: Ed Schouten <ed@80386.nl> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: sosend() and mbuf Message-ID: <319cceca0908040259q4537db80uc2ce9696f30bfc12@mail.gmail.com> In-Reply-To: <20090804095650.GP1292@hoeg.nl> 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> <20090804094142.GO1292@hoeg.nl> <319cceca0908040252w105d3dfdge9dec3c8b6d28607@mail.gmail.com> <20090804095650.GP1292@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
yes kio http://people.freebsd.org/~pjd/misc/kernio/ However, It's outdated. On Tue, Aug 4, 2009 at 9:56 AM, Ed Schouten<ed@80386.nl> wrote: > * Maslan <maslanbsd@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@80386.nl> > WWW: http://80386.nl/ >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?319cceca0908040259q4537db80uc2ce9696f30bfc12>