Re: PROPOSAL: /proc/dev

Pavel Machek (pavel@atrey.karlin.mff.cuni.cz)
Mon, 5 Jan 1998 12:35:00 +0100


Hi!

> > - I think this is totally wrong for programs or people that check in /dev
> > for a device before try to open it, or at least is a mess.
> WHAT!!! The whole point of a virtual devfs is that you can do a "ls /dev"
> to see what devices are currently accessable. And most actions on a divice
> start with a call to open() (or mount()).

Ok. You have device 'foobar' which you can load module for. It is not
loaded, now. Which means /dev/foobar entry is not there. Now, some
broken app goes and looks if /dev/foobar exists. If it does not, it
will bail out, instead of opening it (which would cause /dev/foobar to
be loaded.)
Pavel

-- 
Do *NOT* buy software, GNU software is and free!  		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+