Am Freitag, 4. April 2003 22:07 schrieb Subrata Goswami:
Hi, have two simple questions.
1. If there are multiple driver modules (*.o) for a single USB device, what precedence would be followed while loading them ? The /etc/modules.conf file does not contain any of the drivers.
Loading order doesn't matter, registration order does. The kernel has some code to manage binding drivers to interfaces, and it scans drivers in the order they're found in that list. If a driver is already loaded, it'll get a chance to bind before a driver that needs to be dynamically linked gets one.
2. What part of the USB code handles searching, selecting, and loading the drivers ?
None at all. Driver loading is initiated by the hotplug subsystem. After that it's all in the hands of the hotplug shell scripts.
Specifically, /etc/hotplug/usb.agent ... which is a user-land component of the usb code! :)
In the default configuration they use the modules.usbmap file, which is generated during kernel compilation.
HTH Oliver
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
