From owner-freebsd-hackers Fri Mar 5 14:16:31 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [207.153.65.3]) by hub.freebsd.org (Postfix) with ESMTP id 2F70914DD7 for ; Fri, 5 Mar 1999 14:15:33 -0800 (PST) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.8.8/8.8.7) with SMTP id RAA15754 for ; Fri, 5 Mar 1999 17:15:14 -0500 (EST) Date: Fri, 5 Mar 1999 17:15:13 -0500 (EST) From: "Matthew N. Dodd" To: hackers@freebsd.org Subject: Reading a file inside the kernel. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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