whatis kernel-module

Kernel Module

Also known as: driver, modprobe, lsmod, .ko

A piece of kernel code, usually a driver, that can be loaded and unloaded at runtime without rebooting. Managed with modprobe.

What Is a Kernel Module in Linux?

Most hardware drivers and filesystems ship as .ko module files under /lib/modules/$(uname -r)/. udev loads the right ones automatically when hardware appears. lsmod lists loaded modules and modinfo describes one.

Options go in /etc/modprobe.d/, where you can also blacklist a module to stop it loading. Out-of-tree modules like NVIDIA or ZFS must be rebuilt for each kernel, which DKMS automates.

Example

lsmod | grep kvm
sudo modprobe -r pcspkr