On Tue, Jan 26, 2010 at 08:42:20PM +0200, Ozan T??rky??lmaz wrote: > 26.01.2010 17:42, Greg KH yazm????: >> On Sun, Jan 24, 2010 at 10:49:24AM +0530, Joel Fernandes wrote: >>> Hi Peter, >>> >>> Thanks for your message. >>> Actually I'm interested in how modprobe autoloads modules based on the >>> modalias files in sysfs. I read this in Greg KH's great book - Linux Kernel >>> in a Nutshell and I've been wondering how the modules would get loaded if >>> they had to be loaded in the first place to have the device->module list to >>> exist. >> >> modprobe is "smart" and knows what modules support what devices based on >> the cache it creates when you run 'depmod' when a new kernel is >> installed. >> > > is it possible to get that information (what module determines what > driver) from modprobe. Not that I know of, look at the alias file that depmod creates, that holds the information you need. Hope this helps, greg k-h -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ