Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Kernel & Hardware

Direct answer

Kernel and hardware topics cover how Linux detects devices, loads drivers (modules), exposes them in /proc and /sys, and reports hardware errors.

When to use this

Use it when a device is not detected, has no driver, or the kernel logs hardware errors.

First 30 seconds

1. Detected? lspci -nn / lsusb / lsblk.

2. Driver bound? lspci -k — "Kernel driver in use".

3. No driver → modprobe <module>; missing firmware in dmesg?

4. Errors: journalctl -k -b -p warning.

5. Hardware health tools (smartctl, ipmitool sel list, edac-util).

Operational verification

device detected on its bus → driver module loaded → firmware loaded → device node/interface → usable

Evidence · next step

For Kernel & Hardware, continue with the first unproven Topic check: Record host/VM, boot ID, running kernel version, hardware identity and exact failing device/workload. If that boundary is healthy, advance to the adjacent check: Enumerate device presence and driver/module binding; capture /proc, /sys, uevent/modalias and kernel-log evidence for the incident. 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
Key commanduname
Scope / prerequisiteUse it when a device is not detected, has no driver, or the kernel logs hardware errors.
Verify · 1Reference · 7
What next?3 suggested next steps
Child topics (this level)4
Catalog command links8
Evidence1
On this pageJump to a specific section
Linux command reference

Primary Commands

Configuration and operational commands for this Topic.

unameVerify
uname

Display kernel name, release, architecture and related system identity fields.

Use when: Primary lookup intent: verify. Use uname when the lookup goal is to display kernel name, release, architecture and related system identity fields. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: verify. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. uname is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · state
lsmodReference
lsmod

List currently loaded kernel modules and their use counts.

Use when: Primary lookup intent: verify. Use lsmod when the lookup goal is to list currently loaded kernel modules and their use counts. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: verify. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. lsmod is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · state
modprobeReference
modprobe

Load or remove kernel modules while resolving module dependencies and configuration.

Use when: Primary lookup intent: configure. Use modprobe when the lookup goal is to load or remove kernel modules while resolving module dependencies and configuration. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Post-change verification for modprobe: Verify module/parameter state and retest the dependent device or workload. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. modprobe is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · configuration
modinfoReference
modinfo

Display metadata, parameters, aliases and file information for a kernel module.

Use when: Primary lookup intent: verify. Use modinfo when the lookup goal is to display metadata, parameters, aliases and file information for a kernel module. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: verify. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. modinfo is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · state
sysctlReference
sysctl

Read or write exposed kernel runtime parameters under the sysctl interface.

Use when: Primary lookup intent: configure. Use sysctl when the lookup goal is to read or write exposed kernel runtime parameters under the sysctl interface. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Post-change verification for sysctl: Read back effective runtime state and rerun the affected network/kernel/application test. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. sysctl is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · configuration
lspciReference
lspci

Enumerate PCI devices and expose vendor, device, class and driver-related information.

Use when: Primary lookup intent: troubleshoot. Use lspci when the lookup goal is to enumerate PCI devices and expose vendor, device, class and driver-related information. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. lspci is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · state
lsusbReference
lsusb

Enumerate USB devices and display bus, device and descriptor information.

Use when: Primary lookup intent: troubleshoot. Use lsusb when the lookup goal is to enumerate USB devices and display bus, device and descriptor information. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. lsusb is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · state
dmidecodeReference
dmidecode

Decode firmware-provided SMBIOS/DMI tables for hardware and platform inventory.

Use when: Primary lookup intent: troubleshoot. Use dmidecode when the lookup goal is to decode firmware-provided SMBIOS/DMI tables for hardware and platform inventory. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. dmidecode is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · state
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

physical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verification

Healthy evidence: expected hardware is enumerated, intended driver/module is bound, kernel logs show stable initialization, exposed state matches intent and the dependent workload operates normally.

Step 2 Commands Verify boundary
uname -r
lsmod
dmesg -T | tail
lspci -k
Step 3 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Record host/VM, boot ID, running kernel version, hardware identity and exact failing device/workload.

  • Enumerate device presence and driver/module binding; capture /proc, /sys, uevent/modalias and kernel-log evidence for the incident.
  • Correlate resets, timeouts, corrected/uncorrected errors, resource conflicts or driver state with the first failed functional boundary.
  • Apply one reversible cause-specific change where possible, then re-read kernel/device state and repeat the original device-dependent workload.

Verification chain. physical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verification

Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: device disappears or re-enumerates, wrong/no driver binds, kernel reports resets/timeouts/MCE/IOMMU/resource errors, /sys state is degraded or workload fails despite nominal discovery.

Step 5 Common mistakes Narrow the fault
  • Upgrading the kernel without testing drivers/DKMS modules.
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
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Check detection first (lspci, lsusb, lsblk), then the driver (lspci -k), then kernel messages. Firmware files (linux-firmware) are often needed for NICs and Wi-Fi.

Key checks
  • 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

Pin the running kernel and boot instance, enumerate hardware/device identities through kernel interfaces, then verify driver/module binding and kernel-reported state in /proc, /sys and logs. Separate hardware presence from driver binding, driver binding from functional dataplane behavior and kernel observation from application acceptance.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

Kernel/hardware evidence requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence.

In depth

Kernel and hardware: health indicators

The kernel reports hardware problems and its own condition through its log, and through a few status flags. One of the most useful is the taint flag. The kernel documentation on tainted kernels explains it:

  • A kernel is "tainted" when something has happened that may matter for later diagnosis. Running tainted is normally fine.
  • /proc/sys/kernel/tainted holds 0 when untainted, otherwise a bit field. Oops and panic messages show Tainted: with letters.
  • The flags include P (proprietary module), O (out-of-tree module), E (unsigned module), W (an earlier warning), D (the kernel has oopsed), M (a machine check exception) and L (a soft lockup).
  • The flag stays set until reboot, and developers may ignore bug reports from tainted kernels.

Health indicators to check

IndicatorCommandConcern
Taint flagscat /proc/sys/kernel/taintedD, M or L mean real trouble
Kernel errors and warningsdmesg --level=err,warn -TDisks, memory, PCIe, thermal
Machine checksjournalctl -k -g "mce|Machine check", ras-mc-ctl --summaryCPU or memory faults
Memory errors (ECC)edac-util -v or /sys/devices/system/edac/Corrected errors are an early warning
Disk healthsmartctl -H -A /dev/sda, nvme smart-log /dev/nvme0Reallocated sectors, media errors
Temperatures and throttlingsensors; dmesg -g "throttled"Cooling problems
Kernel version and builduname -r, uname -vKnown bugs, missing fixes

Decoding the taint value

host$ cat /proc/sys/kernel/tainted
4609
host$ t=4609; for b in $(seq 0 18); do [ $(( (t >> b) & 1 )) -eq 1 ] && echo "bit $b set"; done
bit 0 set
bit 9 set
bit 12 set
host$ uname -r; modinfo -F license nvidia 2>/dev/null
6.8.0-49-generic
NVIDIA
host$ journalctl -k -b -g "Tainted:" --no-pager | tail -1
host$ sudo smartctl -H /dev/sda | grep result
SMART overall-health self-assessment test result: PASSED
host$ sudo nvme smart-log /dev/nvme0 | grep -E "critical_warning|media_errors|percentage_used"

Reading the decoded value

4609 = 1 + 512 + 4096: bit 0 (P, a proprietary module, here the NVIDIA driver), bit 9 (W, a warning has occurred) and bit 12 (O, an out-of-tree module). The W bit is worth following up: journalctl -k -g "WARNING:" shows which warning set 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 & Hardware is part of Kernel & Hardware. Linux Kernel & Hardware is the operational reference for proving the running kernel, loaded drivers/modules, kernel-exposed device state and hardware discovery path before attributing an OS symptom to physical or virtual hardware.

Topic-specific state model. Linux Kernel & Hardware is the operational reference for proving the running kernel, loaded drivers/modules, kernel-exposed device state and hardware discovery path before attributing an OS symptom to physical or virtual hardware.

Interpretation rule. - Hardware enumerated ≠ the correct driver is bound or the device is usable.

  • A module loaded ≠ it successfully bound the intended device or initialized it without errors.
  • /proc or /sys value exists ≠ the device/service behavior is healthy.
  • No kernel error in the current log view ≠ no hardware/kernel fault occurred outside retention, boot or query scope.

Quick reference

Kernel and hardware inspection:

uname -r; cat /proc/cmdline
lscpu; lsmem; free -h
lspci -nnk; lsusb; lsblk
dmidecode -t system -t bios -t memory | less
inxi -Fxz 2>/dev/null
sensors 2>/dev/null
journalctl -k -b -p warning

lspci -k shows which driver is bound to each device; dmidecode reveals model, serial and firmware versions needed for vendor support.

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. Kernel/hardware evidence requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Kernel & Hardware owns Linux kernel/device discovery and driver binding. Storage, Networking and Virtualization own subsystem-specific behavior; vendor hardware tooling may own firmware/controller diagnostics.

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. 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 hardwarelinux hardware troubleshootingkernel device drivers linuxlinux hardware detection
Embedded reference data

Quick lookup tables

Kernel & Hardware operational reference

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

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux Kernel & Hardware is the operational reference for proving the running kernel, loaded drivers/modules, kernel-exposed device state and hardware discovery path before attributing an OS symptom to physical or virtual hardware.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 chainphysical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verificationTrace requested/configured state through effective state to the observed workload result.
Failure boundaryKernel/hardware proof requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux resource/kernel evidence can establish this proof path: physical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verificationUse 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. Kernel/hardware proof requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence.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 & Hardware · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryKernel & Hardware
Topic pathKernel & Hardware
Runtime stateLinux Kernel & Hardware is the operational reference for proving the running kernel, loaded drivers/modules, kernel-exposed device state and hardware discovery path before attributing an OS symptom to physical or virtual hardware.
Fast checks- Record host/VM, boot ID, running kernel version, hardware identity and exact failing device/workload. - Enumerate device presence and driver/module binding; capture /proc, /sys, uevent/modalias and kernel-log evidence for the incident. - Correlate resets, timeouts, corrected/uncorrected errors, resource conflicts or driver state with the first failed functional boundary. - Apply one reversible cause-specific change where possible, then re-read kernel/device state and repeat the original device-dependent workload.
Verification chainphysical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verification 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 boundaryKernel/hardware proof requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence. 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?