Messages in this thread | | | Date | Tue, 7 May 2002 10:00:28 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [PATCH] 2.5.14 IDE 56 |
| |
On Tue, 7 May 2002, Alan Cox wrote: > > /proc/ide has useful information in it that you can't get easily by > other means at the moment - which controller is driving the disks, what > devices are present etc.
I'd love for somebody to add the devices to the real device tree, at which point this kind of information would be very much visible..
Right now devicefs isn't even mounted by default, but it's the only _really_ generic way of showing things like this that we have. For people who haven't seen it before, do a
mount -t driverfs /devfs /devfs
and go look in there.. In particular, if you have a PCI system with a USB device tree (or _multiple_ such trees), notice how you can look at things like
/driverfs/root/pci0/00:1f.4/usb_bus/000/
and it wouldn't be impossible (or even necessarily very hard) to make an IDE controller export the "IDE device tree" the same way a USB controller now exports the "USB device tree".
For things like hotplug etc, I think driverfs is eventually the only way to go, simply because it gives you the full (and unambiguous) path to _any_ device, and is completely bus-agnostic.
But there is definitely a potential backwards-compatibility-issue.
Linus
- 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/
| |