Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual page 399

Table of Contents

Advertisement

For each line, the first column is the name of the module, the second column is the size of the
module, and the third column is the use count.
The
output is less verbose and easier to read than the output from viewing
/sbin/lsmod
.
/proc/modules
To load a kernel module, use the
name. By default,
modprobe
/lib/modules/<kernel-version>/kernel/drivers/
for each type of module, such as the
kernel modules have module dependencies, meaning that other modules must be loaded first
for it to load. The
/sbin/modprobe
module dependencies before loading the specified module.
For example, the command
/sbin/modprobe e100
loads any module dependencies and then the
To print to the screen all commands as
example:
/sbin/modprobe -v e100
Output similar to the following is displayed:
/sbin/insmod /lib/modules/2.6.9-5.EL/kernel/drivers/net/e100.ko
Using /lib/modules/2.6.9-5.EL/kernel/drivers/net/e100.ko
Symbol version prefix 'smp_'
The
command also exists to load kernel modules; however, it does not resolve
/sbin/insmod
dependencies. Thus, it is recommended that the
To unload kernel modules, use the
utility only unloads modules that are not in use and that are not a dependency of other
rmmod
modules in use.
For example, the command
/sbin/rmmod e100
unloads the
kernel module.
e100
/sbin/modprobe
attempts to load the module from the
subdirectory for network interface drivers. Some
net/
command checks for these dependencies and loads the
e100
/sbin/modprobe
/sbin/modprobe
command followed by the module name. The
/sbin/rmmod
Kernel Module Utilities
command followed by the kernel module
subdirectories. There is a subdirectory
module.
executes them, use the
command be used.
option. For
-v
375

Advertisement

Table of Contents
loading

Table of Contents