If you have insmod in in the init scripts, the module will be loaded every
time restart.
If you use /etc/conf.modules, the autoloader will load the module only
when an application opens the particular device file entry.

Here is a silly example..
In conf.modules, one of the lines I have is
alias char-major-81 videodev

So when an application makes an open call to a device file with major
number 81 (any minor number), the module videodev.o is loaded from
/lib/modules/xxxx
When the usage count of the module is zero for a long time, the module is
automatically unloaded, thus reclaiming unused system resources.

There are several advanced options..this is just a simple example.

Regards
Sojan.



On Mon, 18 Dec 2000, Rajesh Fowkar wrote:

> Hi,
> 
> What is the difference in loading a kernel module using /etc/modules.conf file ( ex. 
>: using alias ) and directly using insmod in say /etc/rc.d/init.d/rc.local file ( ex. 
>: insmod specialix ) ? 
> 
> Is it the same ? Which method is better ? Why is the thing like say char-major-108 
>or whatever is used in modules.conf ?
> 
> Thanks in advance.
> 
> Regards
> 
-- 
--- Sojan James--------- Information Appliance SW -------------
--- Ph: 5587918/919/920- National Semi. India Designs Ltd. ----
--- ext.308 ------------ 7/6 Brunton Road, Bangalore 25. India- 



----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to