sd_mod and usb_storage kernel modules
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?