Hi list,
I am referring linux-2.6.30/Documentation/hotplug.txt And I am not able
to follow below things.
[root@viral usb]# cat hotplug.txt
Most USB device drivers should pass these tables to the USB subsystem as
well as to the module management subsystem.
...
...
When the USB subsystem knows about a driver's device ID table, it's used
when
choosing drivers to probe(). The thread doing new device processing checks
drivers' device ID entries from the MODULE_DEVICE_TABLE against
interface and
device descriptors for the device.
===================
Now , my question is, usb_device_ids are a member of static structure
which is defined in class specific driver.
This is private variable to that module. How can usbcore access that
array of devices without loading that particular module ?
And my answer to this question is this is where modules.usbmap is used
and also when I connect USB device to my machine, some policy agents
reads modules.usbmap file and extracts information and must be calling
usbcore function. Then in turn usbcore will load/probe appropriate
device driver and NOT usbcore itself goes through list and decides about
which driver to load.
Please correct me if I am missing something.
--
Thanks,
Viral Mehta,
Embedded Software Engineer,
Tel. No. 91 79 26563705, Ext. 423
www.einfochips.com <http://www.einfochips.com>
--
_____________________________________________________________________
Disclaimer: This e-mail message and all attachments transmitted with it
are intended solely for the use of the addressee and may contain legally
privileged and confidential information. If the reader of this message
is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution, copying, or other use of
this message or its attachments is strictly prohibited. If you have
received this message in error, please notify the sender immediately by
replying to this message and please delete it from your computer. Any
views expressed in this message are those of the individual sender
unless otherwise stated.Company has taken enough precautions to prevent
the spread of viruses. However the company accepts no liability for any
damage caused by any virus transmitted by this email.
_____________________________________________________________________
--
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