Managing Kernel Modules
Describes how to inspect loaded kernel modules, adjust parameters, and control which modules load on Oracle Linux.
Use the lsmod command to view which modules are loaded into the running
kernel. Use the modinfo command to find out information about a kernel
module. Use the modprobe command to load a module into the running kernel
or to change kernel module parameters. You can also create configuration files in
/etc/modprobe.d/ to control parameters that are used when kernel
modules are loaded. You can also configure whether modules load at boot time, by editing
configuration in /etc/modules-load.d/.
Listing Information About Loaded Modules
lsmod(5) and
modinfo(8) manual pages. Loading and Unloading Modules
modprobe(8) and modules.dep(5) manual pages. Changing Kernel Module Parameters
Specifying Modules To Be Loaded at Boot Time
The system loads most modules automatically at boot time. You can also add modules to be
loaded by creating a configuration file for the module in the
/etc/modules-load.d directory. The file name must have the extension
.conf.
Changes to the /etc/modules-load.d directory persist across reboots.
Preventing Modules From Loading at Boot Time
You can prevent modules from loading at boot time by adding a deny rule in a configuration
file in the /etc/modprobe.d directory and then rebuilding the initial ramdisk
used to load the kernel at boot time.
Disabling modules can have unintended consequences and can prevent a system from booting or from being fully functional after boot. As a best practice, create a backup ramdisk image before making changes and ensure that the configuration is correct.
Removing Weak Update Modules
In certain cases, you might remove weak update modules in place of a newer kernel, for example, in the case where an issue with a shipped driver has been resolved in a newer kernel. In this case, you might prefer to use the new driver rather than the external module that you installed as part of a driver update. See About Weak Update Modules for more information.
Two different approaches can be used to remove a weak update module.