Re: Requesting help mapping a USB descriptor to its USB-serial device.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg KH <greg@xxxxxxxxx>:
> On Thu, Apr 15, 2010 at 01:38:29AM -0400, Eric Raymond wrote:
> > Short version:
> > 
> > I need to know how, from a USB device descriptor associated with a
> > USB-serial device, I can get the USB-serial device's minor number.
> > 
> > I'm using Ubuntu 9.10 and have libusb-1.0.0 available. I have
> > successfully written code to walk the enumerated-devices list.
> 
> Use libudev to get this easily.  sysfs shows this mapping, look in
> /sys/dev/char/ for the links, or walk backward from the usb device
> itself.

OK, I found the libudev Reference Manual.  Looks like I can use that.

"walk backward from the usb device" - that I don't understand.
-- 
		<a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux