Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 1999 17:15:13 -0500 (EST)
From:      "Matthew N. Dodd" <winter@jurai.net>
To:        hackers@freebsd.org
Subject:   Reading a file inside the kernel.
Message-ID:  <Pine.BSF.4.02.9903051712100.15262-100000@sasami.jurai.net>

next in thread | raw e-mail | index | archive | help
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.

Thanks.

-- 
| Matthew N. Dodd  | 78 280Z | 75 164E | 84 245DL | FreeBSD/NetBSD/Sprite/VMS |
| winter@jurai.net |      This Space For Rent     | ix86,sparc,m68k,pmax,vax  |
| http://www.jurai.net/~winter | Are you k-rad elite enough for my webpage?   |



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?Pine.BSF.4.02.9903051712100.15262-100000>