Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Kernel Modules

Direct answer

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.

When to use this

Use it when a feature needs a module, a module fails to load, or must be blacklisted.

First 30 seconds

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.

Operational verification

module present for the running kernel → modprobe resolves dependencies → loaded with options → feature available

Evidence · next step

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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it when a feature needs a module, a module fails to load, or must be blacklisted.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 /sys driver/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 references

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.

observation · 1
Key points

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.

Key checks
  • modinfo <module> — module details
  • uname -r — running kernel
  • lsmod — loaded modules
  • lspci -k — PCI devices and the driver in use
  • lsusb — USB devices
  • journalctl -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 the modules.dep.bin file built by depmod.
  • -r removes a module, together with dependencies that are no longer used.
  • -n with -v shows what would happen, and --show-depends lists 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/*.conf override those in /run, /usr/local/lib and /lib/modprobe.d, and are read in lexical order.
  • options sets parameters every time the module loads, and alias adds names.
  • install and remove run custom commands instead.
  • blacklist ignores a module's internal aliases.
  • softdep loads related modules before or after.

Commands

TaskCommand
Loaded moduleslsmod
Information and parametersmodinfo <module>, modinfo -p <module>
Current parameter valuesls /sys/module/<module>/parameters/
Load with a parametermodprobe <module> param=value
Unloadmodprobe -r <module>
Which driver a device useslspci -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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

  • modprobe exits 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
linux kernel moduleslsmod modprobelinux driver modulesmodinfo linux
Embedded reference data

Quick lookup tables

Kernel Modules operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Kernel Modules.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateKernel 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 verificationPin 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 chaindevice modalias/config → module dependency + alias resolution → kernel load/signature policy → driver registration/binding → device initialization → subsystem interface → workloadTrace requested/configured state through effective state to the observed workload result.
Failure boundaryModule 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 evidenceCorrelated 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 → workloadUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryKernel Modules
Topic pathKernel & Hardware → Kernel Modules
Runtime stateKernel 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 chaindevice 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 boundaryModule 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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?