2005-01-16 19:13:55

by Sergey Vlasov

[permalink] [raw]
Subject: Re: permissions of /proc/tty/driver

On Sun, 16 Jan 2005 14:13:46 +0100, Thomas Viehmann wrote:

> Christoph Hellwig wrote:
>> Counter-question: What information is available in
>> /proc/tty/driver/usbserial but not in sysfs?
>
> Thanks for this hint, is there a way of finding vendor and product ids
> of all ttyUSB devices better than
> looking for /sys/bus/usb/devices/*-*/*-*:*/ttyUSB* and then ckecking the
> obvious files in the grandparent directory?

/sys/bus/usb-serial/devices/* looks like what you need...