On Mon, Jan 19, 2004 at 09:22:03AM +0100, Zodel Wolfgang (MPI/SFS) wrote:
> Hi,
> when i plug in first serial usb device, the device is attached to
> /dev/usb/ttyUSB0. As a result of that, the usb.agent is notified by a
> hotplug event. How can the usb.agent get the corresponding
> /dev/usb/ttyUSBx attached to the current connected serial usb device?
> Is there an environment variable available?

For 2.6 you will get a hotplug event when the ttyUSBx device is created.
Use that event to determine what device it is connected to.

For 2.4, look in the /proc/tty/drivers/usbserial file.

Hope this helps,

greg k-h


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to