On Thu, 15 Apr 2004, Oliver Neukum wrote: > Am Donnerstag, 15. April 2004 22:51 schrieb [EMAIL PROTECTED]: > > I am doing a usb project and I am interested in the device enumeration > > process. Where is the enum process carried out? I have been to umpteen > > Linux usb related sites and so far come up dry. Is it in a kernel module or > > something in the file system? I'm lost. > > Most of it is in the usbcore kernel modul. Most of it will run under khubd's > context.
In case you want more details... Enumeration is controlled by two different source code files. Under Linux 2.6.5, first in drivers/usb/core/usb.c the usb_new_device() routine assigns the device a bus address and reads the device descriptor. Then in drivers/usb/core/config.c several routines read and parse the configuration, interface, and endpoint descriptors. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
