Date: Sun, 6 Feb 2005 04:22:41 -0800 (PST) From: "Kamal R. Prasad" <kamalpr@yahoo.com> To: freebsd-hackers@freebsd.org Subject: Re: Opening and wriiting to file in Kern Message-ID: <20050206122241.63590.qmail@web52702.mail.yahoo.com> In-Reply-To: <4206008F.2060100@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Scott Long <scottl@freebsd.org> wrote: > Ashwin Chandra wrote: > > > Does anyone know the correct calls to open a file, > write to it, and close it, IN *kernel* mode. > > > > Ash > > There is no common API for doing this, which is > pretty much on purpose. > First, you need to ask yourself why your task > needs it done in the > kernel and not in userland. > A feature implemented within the kernel that requires making stuff persistent would almost certainly require file I/O. For that matter, a kernel (module) that reads a configuration file will also need the same facility. I don't see anything wrong with providing a stream (like) interface to the filesystem. regards -kamal __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050206122241.63590.qmail>