> On Wed, Jan 30, 2002 at 02:03:12AM +0100, Dave Jones wrote:
> >
> > > Yes, I need to have better names for the devices than just "usb_bus",
> > > any suggestions? These devices nodes are really the USB root hubs in
> > > the USB controller, so they could just have the USB number as the name
> > > like the other USB devices (001), but that's pretty boring :)
> >
> > "usb_root0" .. "usb_rootN" ?
>
> Hm, that's a good idea, it would match the usbfs bus numbers which
> should keep people happy.
Would it be usb_rootN or usb_busN?
> > btw, a script to marry the busid's from driverfs to lspci/lsusb
> > output may be useful in the future especially if combined somehow
> > with tree(1). Could be very handy when it gets time to debug
> > those "My system won't suspend to disk" "What does /driver look like?"
> > situations.
>
> Ah, a lsdrivers program is needed! :)
I started writing an 'lsdev' program a while back. If I ever get some free
time and feel like playing userspace again, I'll finish it along with a
couple of other utilities.
One of the things I fantasized about was making different bus
'personalities' for it. So, you emulate lspci behavior with the same
executable. And, extend it to other buses, so you could view all the
devices of a particular bus type (and only those devices).
This information will be known by devices as they are registered in the
tree, and will be easy to export to userspace. So, one could do lspcmcia,
lssbus, and *drum roll* lsisa.
Now for the best part: instead of having to do lsdev -t pci etc, I was
just going to hard link ls{$bus type} to lsdev and make it check what
argv[0] was to decide how to behave. :)
People hate that idea, and I admit it's twisted. But, there's something
kinda cute about it.
-pat
-
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/