lkml.org 
[lkml]   [1998]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PROPOSAL: /proc/dev
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+

\
 
 \ /
  Last update: 2005-03-22 13:41    [from the cache]
©2003-2011 Jasper Spaans