Hi,
when the usb.agent is called by /sbin/hotplug with some parameters (e.g. ACTION, 
INTERFACE, DEVICE, PRODUCT, TYPE), I miss the assignment between these specific device 
variables and the attached device file name string "/dev/bus/ttyUSBx". Is there an 
environment variable, which contains this device file name string or from where I can 
get it?

Looking forward to hearing from you again.
Kind regards
Wolfgang Zodel 

-----Ursprüngliche Nachricht-----
Von: Greg KH [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 19. Januar 2004 18:44
An: Zodel Wolfgang (MPI/SFS)
Cc: [EMAIL PROTECTED]
Betreff: Re: your mail


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