[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-usb-devel
Subject:    Re: [linux-usb-devel] need pointer to code where usb system decides
From:       Alan Stern <stern () rowland ! harvard ! edu>
Date:       2004-11-30 16:41:56
Message-ID: Pine.LNX.4.44L0.0411301140150.1189-100000 () ida ! rowland ! org
[Download RAW message or body]

On Tue, 30 Nov 2004, Jeffrey Lim wrote:

> hi folks, i am having problems with a usb mouse driver i'm trying to
> write, as the system somehow keeps on assigning the 'hid' driver to
> the mouse no matter what i do, even if my driver is ~specifically~ for
> the vid/pid of my mouse.
> 
> So i am trying to trace down the code that decides the driver to
> assign to the device. I have gone from usb_register in
> drivers/usb/core/usb.c, as far back as bus_add_driver in
> drivers/base/bus.c, but i'm afraid this is where i get lost. Could
> somebody just give me some pointers as to the code in the usb
> subsystem that really takes care of this, that decides which driver to
> assign to which interface?
> 
> i would really appreciate some help here,
> thanks,
> -jf

Look in drivers/usb/core/usb.c at the usb_device_match() and 
usb_match_id() functions.

Alan Stern



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic