1819681 Members
3539 Online
109605 Solutions
New Discussion юеВ

insmod or depmod

 
Hanry Zhou
Super Advisor

insmod or depmod

If I want to install a loadable module which command I should use, why, and what the differeces are?

Thanks,
none
4 REPLIES 4
Stuart Browne
Honored Contributor

Re: insmod or depmod

depmod is most definatly not the command, as it is for updating the module dependancies.

insmod or modprobe are your two choices.

modprobe is the better, as it uses the dependancy trees (generated by depmod), as well as the /etc/modules.conf file to map names, and options, as well as pre/post install commands.

insmod just insert's it, there and then, regardless of dependancies.
One long-haired git at your service...
Ragu_1
Regular Advisor

Re: insmod or depmod

The kernel Linux has got automatic module loading features. Kernel v2.6 has even got automatic module unload. You can alias your module inside /etc/modutils/alias (Debian). Regenerate /etc/moduls.conf and you are set. When your app, say like `cam' is executed, all the related sound card modules get loaded. Demand loading, shall we say ?
Share and share alike
Hanry Zhou
Super Advisor

Re: insmod or depmod

Stuard,

Okay, I know what you are saying. But what if I only want to load ONE module, not multiple ones?

none
Stuart Browne
Honored Contributor

Re: insmod or depmod

You still want modprobe.
One long-haired git at your service...