Re: Mapping bus+device to /dev/ttyUSBn

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

 



[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.

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | 2011 May 21 is the End of Salvation.
EMail: dave@xxxxxxxxx | Canada  K2A 1H7   | http://Mielke.cc/now.html
http://FamilyRadio.com/                   | http://Mielke.cc/bible/
--
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