Use it when a feature needs a module, a module fails to load, or must be blacklisted.
Kernel Modules
Kernel modules are loadable pieces of the kernel (drivers, filesystems, netfilter features) in /lib/modules/$(uname -r). modprobe loads them with dependencies; /etc/modules-load.d and /etc/modprobe.d configure loading and options.
1. lsmod | grep <module> — loaded?
2. modprobe <module> — error? (dmesg for details)
3. modinfo <module> — parameters and signer.
4. Persist: /etc/modules-load.d/, options in /etc/modprobe.d/.
5. Early modules → rebuild initramfs.
module present for the running kernel → modprobe resolves dependencies → loaded with options → feature available
For Kernel & Hardware → Kernel Modules, continue with the first unproven Topic check: Pin running kernel, module name, device modalias/driver expectation and whether the driver is built-in or loadable. If that boundary is healthy, advance to the adjacent check: Inspect module metadata, dependencies, aliases, parameters, signature/taint policy and current users/bindings before changing state. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
device modalias/config → module dependency + alias resolution → kernel load/signature policy → driver registration/binding → device initialization → subsystem interface → workload
Healthy evidence: the intended module version/parameters are active, dependencies resolve, signature/policy is accepted, device binding is correct and the original device-dependent workload succeeds.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Pin running kernel, module name, device modalias/driver expectation and whether the driver is built-in or loadable.
- Inspect module metadata, dependencies, aliases, parameters, signature/taint policy and current users/bindings before changing state.
- Correlate modprobe/load/unload events with dmesg/journal and
/sysdriver/device links to show initialization or failure. - After a controlled module/config change, verify binding and repeat the original device or service workload, not just
lsmod.
Verification chain. device modalias/config → module dependency + alias resolution → kernel load/signature policy → driver registration/binding → device initialization → subsystem interface → workload
Step 3 Commands Verify boundary
lsmod
modinfo e1000e
modprobe -v bonding
echo bonding > /etc/modules-load.d/bonding.conf
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: module loads but does not bind, wrong alias selects a driver, signature/ABI mismatch rejects load, parameters differ from intent, unload is blocked or kernel logs show initialization failures.
Step 5 Common mistakes Narrow the fault
- Loading modules manually and losing them on reboot.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Use modprobe, not insmod. Persist loading in /etc/modules-load.d/<name>.conf and options in /etc/modprobe.d/. Blacklist with blacklist <module> and rebuild the initramfs if the module loads early. Secure Boot rejects unsigned third-party modules.
modinfo <module>— module detailsuname -r— running kernellsmod— loaded moduleslspci -k— PCI devices and the driver in uselsusb— USB devicesjournalctl -k -b -p warning— kernel warnings this boot
ReferenceWhat it is1 section · depth on demand
Core model
Identify the running kernel and intended module, then inspect built-in versus loadable status, dependencies, aliases/modalias, parameters and signature/taint constraints. Correlate load/unload with kernel logs and actual device binding; use modprobe semantics rather than inserting objects blindly where dependency or policy resolution matters.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Module success is confirmed only when the intended module or built-in driver is correctly bound and the dependent device path works; module-list or exit-status evidence alone is insufficient.
/sys exposes binding state; Kernel & Hardware owns broader device diagnosis; specific subsystems own device operation.
In depth
Kernel modules: loading, options and blacklisting
Most drivers and many kernel features are loadable modules. The modprobe(8) manual page explains how they're loaded:
- modprobe finds modules under
/lib/modules/$(uname -r), and loads their dependencies using themodules.dep.binfile built by depmod. -rremoves a module, together with dependencies that are no longer used.-nwith-vshows what would happen, and--show-dependslists the files involved.- Arguments after the module name are passed to it as parameters.
The modprobe.d(5) manual page describes the configuration:
- Files in
/etc/modprobe.d/*.confoverride those in/run,/usr/local/liband/lib/modprobe.d, and are read in lexical order. optionssets parameters every time the module loads, andaliasadds names.installandremoverun custom commands instead.blacklistignores a module's internal aliases.softdeploads related modules before or after.
Commands
| Task | Command |
|---|---|
| Loaded modules | lsmod |
| Information and parameters | modinfo <module>, modinfo -p <module> |
| Current parameter values | ls /sys/module/<module>/parameters/ |
| Load with a parameter | modprobe <module> param=value |
| Unload | modprobe -r <module> |
| Which driver a device uses | lspci -k, udevadm info -a /sys/class/net/eth0 | grep DRIVERS |
| Load at every boot | /etc/modules-load.d/<name>.conf |
Blacklisting properly
blacklist stops automatic loading through aliases, for example when udev sees matching hardware. An explicit modprobe, or another module that depends on it, can still load it. To stop a module completely, add an install <module> /bin/false line as well. For drivers needed early, rebuild the initramfs too.
host$ lsmod | grep -E "^(nouveau|nvme|kvm_intel) "
host$ modinfo -F parm e1000e | head -3
host$ cat /sys/module/nvme_core/parameters/default_ps_max_latency_us
100000
host$ sudo tee /etc/modprobe.d/nouveau-off.conf >/dev/null <<'EOF'
blacklist nouveau
install nouveau /bin/false
EOF
host$ echo "options nvme_core default_ps_max_latency_us=0" | sudo tee /etc/modprobe.d/nvme.conf
host$ sudo dracut -f || sudo update-initramfs -u
host$ echo "br_netfilter" | sudo tee /etc/modules-load.d/k8s.conf
host$ modprobe -nv br_netfilter
insmod /lib/modules/6.8.0-49-generic/kernel/net/bridge/br_netfilter.ko.zst
Secure Boot and modules
With Secure Boot enabled, the kernel may refuse unsigned modules, for example third-party drivers built with DKMS. The module then fails to load with "Key was rejected by service". Signing the module with a key enrolled through MOK (mokutil) solves it.
Documented example, not captured output.
How it works at runtime
Kernel Modules is part of Kernel & Hardware → Kernel Modules. Kernel Modules covers loadable kernel object lifecycle, dependency/alias resolution, parameterization, taint/signature policy and device binding so module presence can be distinguished from correct driver operation.
Topic-specific state model. Kernel Modules covers loadable kernel object lifecycle, dependency/alias resolution, parameterization, taint/signature policy and device binding so module presence can be distinguished from correct driver operation.
Interpretation rule. - lsmod lists a module ≠ it is bound to the intended device or functioning correctly.
modprobeexits 0 ≠ downstream device initialization or workload succeeded.- A module absent from
lsmod≠ functionality is absent; a driver may be built into the kernel. - Removing a module ≠ safe if devices, mounts, network links or dependent modules are still using it.
Quick reference
Kernel modules add drivers and features at runtime.
lsmod | head
modinfo e1000e | grep -E 'version|firmware|parm'
modprobe br_netfilter; modprobe -r usb_storage
echo 'br_netfilter' > /etc/modules-load.d/k8s.conf
echo 'blacklist nouveau' > /etc/modprobe.d/blacklist-nouveau.conf; dracut -f
echo 'options kvm_intel nested=1' > /etc/modprobe.d/kvm.conf
dkms status # out-of-tree modules rebuilt per kernel
With Secure Boot, unsigned out-of-tree modules fail to load (Key was rejected by service) — sign them with an enrolled MOK. Blacklisting a module used in the initramfs requires rebuilding the initramfs.
Limits and how it fails
Primary failure point. Module success is confirmed only when the intended module or built-in driver is correctly bound and the dependent device path works; module-list or exit-status evidence alone is insufficient.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Kernel Modules owns Linux loadable driver/module lifecycle. /sys exposes binding state; Kernel & Hardware owns broader device diagnosis; specific subsystems own device operation.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Kernel & Hardware → Kernel Modules. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Kernel Modules operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Kernel Modules.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Kernel Modules covers loadable kernel object lifecycle, dependency/alias resolution, parameterization, taint/signature policy and device binding so module presence can be distinguished from correct driver operation. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin exact symptom + interval → identify host/VM, workload and authoritative kernel/device/resource scope → capture correlated runtime telemetry/state → attribute the abnormal signal to process/cgroup/device/driver → find first failed boundary → change one demonstrated cause → read back effective state → repeat original workload + regression check. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | device modalias/config → module dependency + alias resolution → kernel load/signature policy → driver registration/binding → device initialization → subsystem interface → workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Module success is proven only when the intended module or built-in driver is correctly bound and the dependent device path works; module-list or exit-status evidence alone is insufficient. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux resource/kernel evidence can establish this proof path: device modalias/config → module dependency + alias resolution → kernel load/signature policy → driver registration/binding → device initialization → subsystem interface → workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host/VM, boot, incident interval, namespace/cgroup, process, device, kernel/driver or workload scope. Module success is proven only when the intended module or built-in driver is correctly bound and the dependent device path works; module-list or exit-status evidence alone is insufficient. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven resource/kernel boundary: preserve the exact incident scope, capture the adjacent process/cgroup/device/driver or subsystem state, change only the demonstrated cause, then repeat the original workload and regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
Kernel Modules · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Kernel Modules |
|---|---|
| Topic path | Kernel & Hardware → Kernel Modules |
| Runtime state | Kernel Modules covers loadable kernel object lifecycle, dependency/alias resolution, parameterization, taint/signature policy and device binding so module presence can be distinguished from correct driver operation. |
| Fast checks | - Pin running kernel, module name, device modalias/driver expectation and whether the driver is built-in or loadable. - Inspect module metadata, dependencies, aliases, parameters, signature/taint policy and current users/bindings before changing state. - Correlate modprobe/load/unload events with dmesg/journal and /sys driver/device links to prove initialization or failure. - After a controlled module/config change, verify binding and repeat the original device or service workload, not just lsmod. |
| Verification chain | device modalias/config → module dependency + alias resolution → kernel load/signature policy → driver registration/binding → device initialization → subsystem interface → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Module success is proven only when the intended module or built-in driver is correctly bound and the dependent device path works; module-list or exit-status evidence alone is insufficient. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |