LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   insmod: where it search for module (https://www.linuxquestions.org/questions/linux-general-1/insmod-where-it-search-for-module-273990/)

blackzone 01-04-2005 11:22 PM

insmod: where it search for module
 
where does the kernel search for the module to add?

for example when I type "insmod module1", the kernel just search every directory in /lib/module for a file named module1.o?

twantrd 01-05-2005 01:45 AM

I believe it looks under: /lib/module/<your kernel>

-twantrd

adz 01-05-2005 03:41 AM

No, insmod searches the directory from which you ran it. However, modprobe searches every subdirectory of /lib/modules/`uname -r`/kernel.

Oliv' 01-05-2005 07:10 AM

from insmod man page:
Quote:

If the module file name is given without directories or extension,
insmod will search for the module in some common default directories.
The environment variable MODPATH can be used to override this default.
If a module configuration file such as /etc/modules.conf exists, it
will override the paths defined in MODPATH.
and to see modprobe config: "modprobe -c"

Oliv'


All times are GMT -5. The time now is 08:55 AM.