From owner-freebsd-hackers Wed Nov 26 19:32:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA02103 for hackers-outgoing; Wed, 26 Nov 1997 19:32:22 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from dog.farm.org (gw-hssi-2.farm.org [209.66.103.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA02073 for ; Wed, 26 Nov 1997 19:32:18 -0800 (PST) (envelope-from dog.farm.org!dk) Received: (from dk@localhost) by dog.farm.org (8.7.5/dk#3) id TAA25467; Wed, 26 Nov 1997 19:28:21 -0800 (PST) Date: Wed, 26 Nov 1997 19:28:21 -0800 (PST) From: Dmitry Kohmanyuk Message-Id: <199711270328.TAA25467@dog.farm.org> To: proff@iq.org (Julian Assange), julian@whistle.com Cc: freebsd-hackers@freebsd.org Subject: Re: detecting devfs from userland? Newsgroups: cs-monolit.gated.lists.freebsd.hackers Organization: FARM Computing Association Reply-To: dk+@ua.net X-Newsreader: TIN [version 1.2 PL2] Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <19971126232220.5569.qmail@iq.org> you wrote: > Is there anyway to detect if the running kernel was built with > -DDEVFS, other than trying to mount -t devfs ? (i.e a way that > doesn't require root privs? sysctl -a is of no use here. I think that having devfs creating its own device would be nice thing for this purpose... i.e., just stat "/dev/devfs" to check if devfs is running. As an added bonus, devfs operations can be added by reading, writing, or ioctl'ing this device. this can work if you need to check whether devfs is running _now_, as opposed to knowing whether it is compiled into the kernel. Julian, your comments?