On Wed, 8 Jun 2005, Dmitry Torokhov wrote: > Hi, > > For the benefits of input system I would like the driver core to create > a link between a device and class devices associated with it (right now > we have class_device -> device, I want to also have link in opposite > direction device -> class_devive[s]). This way I could show for input > devices paths like: > > /sys/devices/platform/i8042/serio2/input3 > > where input3 is a class device. This way it shows position of the device > relatively clearly.
I have no objection in principle to these opposite symlinks. > The problem I have is that USB creates usbX in /class/usb_host and also > usbX as a root of USB bus growing from the HCD device. Would anyone > object if I renamed usbX to hostX: > > /sys/class/usb_host/hostX Changing an existing name doesn't seem like a good idea. It depends on how widely the current name is being used. > and then we'd have: > > /sys/devices/.../pciXXX/hostX -> ../../..../class/usb_host/hostX > /sys/devices/.../pciXXX/usbX/... Not very good, since a PCI device can easily be a non-USB host (a SCSI host, for example). > Or should it be: > > /sys/devices/.../pciXXX/usb_hostX -> ../../..../class/usb_host/usb_hostX That's better. Although you might want to make the target of the symlink be ../..../class/usb_host/usbX to match the existing names. > Or: > > /sys/devices/.../pciXXX/usbX -> ../../..../class/usbX > /sys/devices/.../pciXXX/usb_busX/... Please don't make this change! While I think that usbX isn't a very good choice of name for the root hub device under pciXXX, it's been around for quite a while and I'm sure it's used a lot. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel