On Tue, 2005-06-28 at 02:08 -0700, Mike Bell wrote:
> On Tue, Jun 28, 2005 at 12:40:15AM -0700, Greg KH wrote:
> > > 1) Predictable, canonical device names are a Good Thing.
> >
> > And impossible for the kernel to generate given hotpluggable devices.
>
> Bull. It's clear I'm talking about per-subsystem, not having individual
> devices show up with the same name each time.
you still can't have that. think USB harddisks for example. The only way
you can do this reliable is to use UUIDs from the disks. Guess what..
udev does that. devfs doesn't.
Same for PCI hotplug; the "path" to your pci IDE controller might change
after you "hotplugged" some stuff. And no that's not just high end
hardware; most docking stations are like this too. Again, only the disk
UUID is usable for getting stable naming.
> > I don't accept it, and neither does anyone else.
>
> So then explain this to me, I've got a GUI sound player, on first
> invocation it displays a list of sound cards installed on the system,
> allows the user to select one, and then plays the sound file. How is it
> supposed to do that if the device nodes for sound card 0 could be named
> anything? I can get a list of sound cards from /proc/asound or
> /sys/class/sound, but unless the sound card device nodes are predictably
> named there's no way to find them short of searching every node in /dev.
actually.. linphone for example shows you the name of the device, not
the device node. And at runtime it finds which device node belongs to
that name somehow. I didn't look at the code how it does that, but it
sure isn't impossible since it's done in practice already.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]