Messages in this thread | | | Subject | Re: [QUESTION/PROPOSAL] udev (fwd) | From | Felipe Alfaro Solana <> | Date | Wed, 03 Mar 2004 21:04:38 +0100 |
| |
On Wed, 2004-03-03 at 20:27, Grzegorz Kulewski wrote:
> If I understand well, currently, when kernel detects new device, it > creates all important files in /sys for it, excluding device file. > > So, (sorry if it was asked 100000000 times... > ... but) why when kernel detects new device or module is loaded, no device > file in sysfs is created? The device files in /dev would be only links to > these in /sys. > > This way we could stop care about major/minor numbers and leave it to sysfs... > And it maybe could decrease the possible races related to udev because it > would only create or remove links to files in /sys. > > Programs will be able to easily find, for what device and where located in > system (buses, etc.) the device file in /dev is - with readlink. > > And it should make the entire process more clear.
This is more or less how Solaris works... In Solaris, /dev entries are just symlinks to entries under the /devices tree which is much like /sys: a tree-like structure which is composed of buses, devices et all.
This is a feature I've always liked from Solaris.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |