From owner-freebsd-hackers Mon Dec 1 13:39:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA21799 for hackers-outgoing; Mon, 1 Dec 1997 13:39:28 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from cheops.anu.edu.au (avalon@cheops.anu.edu.au [150.203.76.24]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA21784 for ; Mon, 1 Dec 1997 13:39:24 -0800 (PST) (envelope-from avalon@coombs.anu.edu.au) Message-Id: <199712012139.NAA21784@hub.freebsd.org> Received: by cheops.anu.edu.au (1.37.109.16/16.2) id AA069692306; Tue, 2 Dec 1997 08:38:26 +1100 From: Darren Reed Subject: Re: detecting devfs from userland? To: tlambert@primenet.com (Terry Lambert) Date: Tue, 2 Dec 1997 08:38:26 +1100 (EDT) Cc: julian@whistle.com, tlambert@primenet.com, dk+@ua.net, proff@iq.org, freebsd-hackers@FreeBSD.ORG In-Reply-To: <199712010404.VAA03532@usr09.primenet.com> from "Terry Lambert" at Dec 1, 97 04:04:10 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Getting back to the topic of detecting DEVFS from userland, if the kernel config file (i.e. GENERIC) was included when compiled - or at least the lines which aren't commented out - and this was available from kernfs as /kern/config, you could do "grep DEVFS /kern/config". Granted this won't tell you if it is or isn't mounted, but is it a start ? Darren