On Thu, Apr 05, 2012 at 09:13:25PM -0400, Dave Mielke wrote: > [quoted lines by Greg KH on 2012/04/05 at 17:41 -0700] > > >> If I know the correct usbfs path (e.g. /proc/bus/usb/002/004) and/or the > >> correct sysfs path (e.g. /sys/dev/char/189:131), what's the best way (assuming > >> there is one) to figure out what the corresponding /dev/ttyUSBn serial device > >> is? > > > >Walk the sysfs tree by following the links, or use libudev to get the > >mapping programatically. > > Yes, I've already tried to figure out how to do it that way. Maybe I've missed > something, but I haven't yet spotted a way under /sys to do it. I can't figure > out how to do it the other way around, either - walking > /sys/bus/usb-serial/devices. As libudev gets the information from sysfs for you to do this, that proves it is possible :) I don't have a usb-serial device on me at the moment to write out the exact steps, as I'm in an airport right now, so I'll leave it as an exercise for the reader... greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html