Re: device driver automatic load/unload]

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

 



Greg KH wrote:
Magic :)
Certainly a magic which I do not understand at this moment.

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.

No, it is userspace that does this determination, not the kernel itself.
A combination of udev and modprobe does the work.
If so, I strongly feel that below line from Documentation/hotplug.txt should be removed/changed.

"When the USB subsystem knows about a driver's device ID table, it's used when choosing drivers to probe()..."

The word "USB subsystem" creates confusion. It gives me a sense that everything is happening BY usb subsytem FROM looking at driver's device ID table and which is not true as discussed.
It all happens with the module aliases, the modules.usbmap is
depreciated and no one uses it anymore.
Ok.
You don't have to do anything except set up a MODULE_DEVICE_TABLE and
then everything will "just work".

Is this not happening for you?
This is happening for me but I need understanding as well. There are lots of things that happen on my *other* operating systems as well but I do not know *how*. And that is why/how I love linux and try to understand whatever that I come across.

Again as usual nice responses. Thanks. :)
thanks,

greg k-h


Email Scanned for Virus & Dangerous Content by : www.CleanMailGateway.com



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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux