Re: USB Question

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

 



On Thu, 22 Jan 2009, Madhukar G wrote:

> Hi All,
> 
> I'm new to linux kernel development. To understand better i had taken
> USB stack as sample. I would like to know which part of USB core
> determines whether a mass storage device or HID device is attached. I
> have fair knowledge of USB 2.0 specs.
> 
> I had chance to look at hub.c file located in core. In this file there
> is a routine hub_events() which sends a series of hub requests and
> finds out which device is plugged in. But i could not find out which
> descriptors will determine the type of device attached. Can any one
> help me in this regard.
> 
> Any help is much appreciated.

Take a look at usb_device_match() and the four functions immediately 
preceding it in drivers/usb/core/driver.c.

Alan Stern

--
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