Date: Sat, 25 Jun 2005 11:57:47 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: ssouhlal@freebsd.org Cc: freebsd-hackers@freebsd.org, sebastien.b@swissinfo.org Subject: Re: Accessing filesystem from a KLD Message-ID: <20050625.115747.127180168.imp@bsdimp.com> In-Reply-To: <42F160E7-9B19-4A8A-8656-A86E0076EBB3@FreeBSD.org> References: <200506251203.13569.sebastien.b@swissinfo.org> <42F160E7-9B19-4A8A-8656-A86E0076EBB3@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <42F160E7-9B19-4A8A-8656-A86E0076EBB3@FreeBSD.org> Suleiman Souhlal <ssouhlal@freebsd.org> writes: : You can use vn_open() to open the file, and then read it using vn_rdwr : (), and finally, vn_close() to close it. Look at src/sys/kern/ : link_elf_obj.c for an example. There's also a desire to provide an easier to use interface for drivers to load, for example, firmware. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050625.115747.127180168.imp>