Re: permissions of /proc/tty/driver

From: Christoph Hellwig
Date: Wed Jan 19 2005 - 05:34:04 EST


On Sun, Jan 16, 2005 at 02:13:46PM +0100, Thomas Viehmann wrote:
> Hi.
>
> 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?

I think that's the obvious way. Using libsysfs will make your life much
easier when doing that, though.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/