About "conf.module" file & related

 i don't know what's the function of /etc/conf.module (or
module.conf,what's difference?),and also,i know when linux
startup,the kernel will load those modules built-in it whe
n it was compiled,but where those "[M]" modules exist in &
how they could be loaded,i want to control the loading,cou
ld you tell me the whole process of loading modules (or te
ll me where can i find a good document to read)
  BTW,i will raise my point if a good answer given,thanks
Who is Participating?
dogsbodyConnect With a Mentor Commented:
conf.modules in more recent versions of linux is called modules.conf.

When kernel modules are compiled they enable the kernel to 'dynamicly' load hardware drivers.support depending on the need of the system.
The compliled modules are usually located in /lib/modules/<kernel version>/.
These modules can be loaded by the kernel when a particular resource is required i.e. at startup when hardware is initiated from /ect/rc, /ect/rc.system or /etc/rc.local or when ismod or modprobe are used.

modules.conf file configures aliases and options for modules you may want to load
i.e. if your ethernet card where compiled as a module you can alias it:

alias eth0 <module name>

so that when you use ifup eth0 for the first time the kernel will load the correct module.

try man modules.conf for more information.

wingboadAuthor Commented:
ok,you mean that when startup or using "modprobe" command,
they will automatically search what you point to in /lib/mo
dules/VERSION/,if it exist,that module will be loaded,right
? and conf.module (module.conf) only works to give a alias
to remmeber or load easily,isn't it?

also you can use modules.conf to set options for each module

option <module or alias> <option name> <value>

to find out what options are available for each module use

modinfo -p <module name>

wingboadAuthor Commented:
ok,thanks a lot,i will accept your answer,hope to see you next time.  HAVE A NICE DAY
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.