Re: Mapping bus+device to /dev/ttyUSBn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 05, 2012 at 07:34:42PM -0400, Dave Mielke wrote:
> 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.

good luck,

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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux