I've been using the usb api's to discover a usb device. I can get the bus number and device number and follow it to /sys/bus/usb/devices/x-x.

My problem is that I need to equate that to the appropriate dev in the /dev directory. It usually starts with ttyUSB. On some systems though I've seen it pop up under /dev/tts/USBx.

So, simply put, is there anyway to programmatically obtain the /dev filename from the bus/device number?

Any help would be greatly appreciated.

Thanks,
Chuck