An idea on devfs vs. udev
From: Daniele Orlandi
Date: Sun Oct 30 2005 - 13:07:24 EST
Disclaimer: My knowledge about devfs/udev/sysfs is superficial, all the
following text maybe nonsense. In case, please ignore it, complain, insult
me, whatever you prefer, I'm not going to be offended :)
I see /dev as an abstraction layer above /sys, where udev implements the
abstraction. udev takes information from /sys and "translates" it to device
files organized in a nice way, following several policies configured on the
system.
Embedded people say "We don't need that kind of abstraction, we are ok with
working at the lower level".
So, why cannot we substitute the "dev" file within /sys with the actual device
file?
udev could continue to work in the same fashion, just stat(2)ing the file,
instead of parsing its contents.
embedded software could directly access the device file in /sys following a
path that is often meaningful and persistant between reboots.
This is *not* meant to be alternative to udev, just a possibility for people
who cannot run hotplug/udev and still want to access dynamic devices and are
prepared to adapt their software and libraries to another scheme.
Bye,
--
Daniele Orlandi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/