My original post was meant to suggest that your proposed notification
method is not the right interface. There's a generic problem with the
UNIX fs design that there is no way to be notified when an inode
changes, and I think this problem could/should be fixed in a way that
allows any process to be notified of a change in an inode specified by
the application. Then you could wait for changes in /devfs or wait for
changes in /proc/devices and act on them. (Meanwhile GUI file managers
could efficiently display up-to-date directories without requiring a
manual refresh or wasting cycles calling readdir() repeatedly.)
I think I misunderstood your post to be suggesting that we not provide
the device functionality via the filesystem, but rather use a different
interface. However, now I misunderstand your post to mean that you just
don't want to name it /dev and administer it with /devfs but would
rather name it /proc/devices and administer it a different way, while
living with the limitations of the existing interfaces. I think my
confusion stems from the use of the word "interface" to describe the
overall way of interacting with devices as opposed to meaning specific
system calls...
I personally don't care much about which solution to this particular
problem is actually chosen. However, I think that the ability to know
when an inode is modified makes the problem easier to solve no matter
which solution is used for the devices issue, as well as solving other,
"unrelated", problems.
alex
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/