Date: Sat, 06 Mar 1999 09:51:20 +0900 From: "Daniel C. Sobral" <dcs@newsguy.com> To: "Matthew N. Dodd" <winter@jurai.net> Cc: hackers@FreeBSD.ORG Subject: Re: Reading a file inside the kernel. Message-ID: <36E07C08.D11DAB7D@newsguy.com> References: <Pine.BSF.4.02.9903051712100.15262-100000@sasami.jurai.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"Matthew N. Dodd" wrote: > > I have a driver that needs to read a file that will eventually be located > somewhere in /boot. It is likely that this file will be determined by an > additional configuration file, also located in /boot, but the > configuration file will be loaded by the ELF bootstrap, so I don't need to > worry about it. > > Any ideas on how to go about opening and reading the file? I suspect the > answer may be buried somewhere in sys/dev/vn (the vnode driver) but I lack > sufficient clue to recognize it. Would something like what splash_bmp do be ok with you? It delegates to loader the responsibility of loading the file (ie, expects it to be loaded already). -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org "FreeBSD is Yoda, Linux is Luke Skywalker." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36E07C08.D11DAB7D>