Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2001 07:39:54 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Greg Lehey <grog@lemis.com>
Cc:        Steve Ames <steve@virtual-voodoo.com>, John Baldwin <jhb@FreeBSD.ORG>, John Indra <john@naver.co.id>, freebsd-current@FreeBSD.ORG
Subject:   Re: DEVFS newbie... 
Message-ID:  <26895.980836794@critter>
In-Reply-To: Your message of "Tue, 30 Jan 2001 11:48:48 %2B1030." <20010130114848.B48269@wantadilla.lemis.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010130114848.B48269@wantadilla.lemis.com>, Greg Lehey writes:

>> You can create symlinks in /dev, you cannot mknod there.
>
>What is the reason for this?  How does a program or script know
>whether the system is running DEVFS or not?

The reson for not creating device nodes is that you don't have
all the information you'll need to really do it.

To find out if you are running on a DEVFS system, look for existence
of the sysctl variable "vfs.devfs.generation"

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26895.980836794>