Results 1 to 2 of 2
Hi there.
I just have a simple question. On common distros, when we insert a usb pen on the computer, the kernel loads automatically the "sd_mod" and "usb_storage" modules to ...
- 08-08-2006 #1Just Joined!
- Join Date
- Jun 2006
- Location
- Leiria, Portugal
- Posts
- 8
sd_mod and usb_storage kernel modules
Hi there.
I just have a simple question. On common distros, when we insert a usb pen on the computer, the kernel loads automatically the "sd_mod" and "usb_storage" modules to handle correctly this sort of device.
My question is, is this actually done by the kernel, ou by an external script, perhaps after processing udev rules?
Meaning, does the kernel automatically recognizes the device and loads those modules automatically, or is some sort of script outside the kernel that detects this kind of device and "modprobes" these modules into the kernel?
Thank you
- 08-08-2006 #2
The modprobe utility knows which modules needs to be loaded as dependencies for the required module. This is done by running the depmod command previously. This command creates something like a script with the proper dependencies.
The module you pointed requires some symbols that were exported by the modules sd_mod and usb_storage with EXPORT_GPL. This information is the source for the tree dependency created by depmod.
Regards


Reply With Quote
