Date: Thu, 27 Nov 1997 23:08:06 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: dk+@ua.net Cc: proff@iq.org, julian@whistle.com, freebsd-hackers@freebsd.org Subject: Re: detecting devfs from userland? Message-ID: <199711272308.QAA14601@usr07.primenet.com> In-Reply-To: <199711270328.TAA25467@dog.farm.org> from "Dmitry Kohmanyuk" at Nov 26, 97 07:28:21 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> 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. You can do the same thing by doing a stat of /dev and looking for an st_ino of 2. The devices themselves, especially in the new SLICE stuff that he's done, should be self-referrential. I'm still trying to talk him into putting them in a hierarchy (with little success... you SVR4 device name traditionalists can rest easy: you still get you have your long cryptic device names for now...). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711272308.QAA14601>