Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Linux Architecture

Direct answer

Linux architecture has three layers: hardware; the kernel, which schedules processes and manages memory, devices, filesystems and networking; and user space, where libraries, shells, services and applications run. Programs ask the kernel for anything privileged through system calls.

When to use this

Use it to decide whether a problem is in the application, a library, the kernel or the hardware.

First 30 seconds

1. Read the exact error from the application or journalctl -u <service>.

2. strace -f <cmd> 2>&1 | tail — which system call fails, with which errno?

3. ENOENT → missing file/path; EACCES → permissions/SELinux; ENODEV → driver/hardware.

4. dmesg -T | tail — kernel messages at the same time?

5. Fix the layer that returned the error.

Operational verification

application → library → system call → kernel subsystem → driver → hardware

Evidence · next step

For Linux Fundamentals → Linux Architecture, continue with the first unproven Topic check: Identify architecture, process, privilege context and the kernel/user-space boundary relevant to the observation. If that boundary is healthy, advance to the adjacent check: Trace the resource through library/runtime, system call or virtual-filesystem interface rather than inferring kernel state from an application error alone. 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 to decide whether a problem is in the application, a library, the kernel or the hardware.
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

hardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible result

Healthy evidence: the failing operation is mapped to a specific process, interface and kernel/user-space boundary with matching architecture and resource evidence.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Identify architecture, process, privilege context and the kernel/user-space boundary relevant to the observation.

  • Trace the resource through library/runtime, system call or virtual-filesystem interface rather than inferring kernel state from an application error alone.
  • Separate kernel capability, loaded driver/module state, configuration and actual device/resource availability.
  • Verify the consumer-visible operation after proving the responsible layer instead of stopping at component presence.

Verification chain. hardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible result

Step 3 Commands Verify boundary
uname -a
ps -o pid,comm -p 1
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: privileged user space is confused with kernel mode, component presence is treated as functionality, or an application message is used to infer a kernel root cause without interface evidence.

Step 5 Common mistakes Narrow the fault
  • Confusing kernel version with distribution version.
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

User-space programs cannot touch hardware directly; errors such as "Permission denied" or "No such device" are the kernel's answer to a system call. strace shows those calls and their errors, which often explains a vague application message.

Key checks
  • uname -a — kernel version and architecture
  • strace -f -e trace=file <cmd> — system calls the program makes and their errors
  • ldd <binary> — shared libraries a program uses
  • dmesg -T | tail — recent kernel messages
ReferenceWhat it is1 section · depth on demand

Core model

Start with the CPU/memory/device architecture, identify the booted kernel and loaded interfaces, then follow a user-space process through libraries or direct system calls into kernel services such as scheduling, memory management, filesystems, networking and drivers. Keep privilege identity separate from CPU execution mode.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

Architecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use.

In depth

Linux architecture: hardware, kernel, user space

A Linux system is layered. The hardware sits at the bottom, and the kernel runs directly on it in a privileged mode. Everything else, from init to the shell to web servers, runs in user space, with no direct hardware access.

The boundary between the layers is the system call interface. The intro(2) manual page describes it:

  • A system call is the entry point into the kernel.
  • Programs usually don't make system calls directly. They call wrapper functions in the C library (glibc or musl), which do the work of entering the kernel.
  • When a call fails, the wrapper typically returns -1 and sets errno to say why.

The layers

LayerContentsExamples
HardwareCPU, memory, disks, NICs, firmwareUEFI, ACPI tables
KernelScheduler, memory management, file systems, network stack, drivers, security modulesvmlinuz, modules in /lib/modules
System call interfaceSeveral hundred entry pointsopenat, read, write, clone, execve, mmap
C libraryWrappers and higher-level functionsglibc, musl
System servicesinit, logging, networking, schedulingsystemd, journald, sshd
Tools and applicationsShells, utilities, serversbash, coreutils, nginx

The kernel's main subsystems

SubsystemResponsible forVisible through
Process management and schedulerCreating processes, sharing CPU timeps, /proc/<pid>
Memory managementVirtual memory, page cache, swapfree, /proc/meminfo
VFS and file systemsA single file tree over many file system typesmount, findmnt
Network stackInterfaces, routing, TCP/IP, filteringip, ss, nft
Device driversHardware supportlsmod, /sys
SecurityPermissions, capabilities, namespaces, LSMsid, getpcaps, SELinux and AppArmor tools

Seeing the boundary

strace shows the system calls a program makes. That's the clearest way to see where user space ends and the kernel begins.

host$ strace -f -e trace=openat,read,write cat /etc/hostname 2>&1 | tail -4
openat(AT_FDCWD, "/etc/hostname", O_RDONLY) = 3
read(3, "srv1\n", 131072)              = 5
write(1, "srv1\n", 5srv1
)                   = 5
host$ strace -c ls / > /dev/null
host$ strace -e trace=openat cat /etc/shadow 2>&1 | grep shadow
openat(AT_FDCWD, "/etc/shadow", O_RDONLY) = -1 EACCES (Permission denied)

Reading the last trace

The cat program never reads /etc/shadow itself. It asks the kernel with openat, and the kernel checks the permissions and refuses with EACCES. That's what "Permission denied" means at this level: a system call returned an error, and the C library passed it on through errno.

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

Linux Architecture is part of Linux Fundamentals → Linux Architecture. Linux Architecture describes the practical boundary between hardware, the Linux kernel and user-space processes, with system calls, device drivers, virtual filesystems and libraries acting as interfaces rather than one undifferentiated operating-system layer.

Topic-specific state model. Linux Architecture describes the practical boundary between hardware, the Linux kernel and user-space processes, with system calls, device drivers, virtual filesystems and libraries acting as interfaces rather than one undifferentiated operating-system layer.

Interpretation rule. - User ID 0 ≠ kernel execution mode.

  • A libc or runtime API call ≠ one specific system call in every implementation.
  • A device node ≠ evidence that the backing device/driver is functional.
  • Kernel support compiled or modular ≠ feature is configured, active or usable by the workload.

Quick reference

Linux architecture layers:

LayerContents
HardwareCPU, memory, devices
Kernel (ring 0)Scheduler, memory manager, VFS, network stack, drivers, security modules
System call interface~350+ syscalls (read, write, openat, clone, execve)
C libraryglibc or musl wraps syscalls for programs
User spaceinit (systemd), daemons, shells, applications
strace -c ls /tmp            # syscalls used by a command
cat /proc/version
ldd /bin/ls | grep libc

A program crashing stays in user space; a kernel bug (oops/panic) can take the whole system down.

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. Architecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Linux Architecture owns the layer model; kernel internals stay under Kernel, process/service behavior under Processes/systemd, and device/storage/network specifics in the relevant Topics.

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 Linux Fundamentals → Linux Architecture. 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 system architecturekernel user space boundarylinux operating system architecture
Embedded reference data

Quick lookup tables

Linux Architecture operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Linux Architecture.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux Architecture describes the practical boundary between hardware, the Linux kernel and user-space processes, with system calls, device drivers, virtual filesystems and libraries acting as interfaces rather than one undifferentiated operating-system layer.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin distribution/release + CPU architecture + running kernel → identify the exact process/session and kernel-versus-user-space boundary → capture shell/TTY mode and effective environment where relevant → resolve the real executable/consumer → correlate requested action with observed runtime state → verify the original workload result before changing persistent configuration.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainhardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible resultTrace requested/configured state through effective state to the observed workload result.
Failure boundaryArchitecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated host, process/session and runtime evidence can establish this Linux Fundamentals proof path: hardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible resultUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured host, kernel, process/session, environment or workload scope. Architecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven Linux layer: preserve platform identity and the running kernel, inspect the exact process/session and effective configuration/environment, resolve the actual consumer/executable, then verify the original workload before moving into the owning Linux subsystem branch.Continue to the next unresolved boundary while preserving the original test condition.

Linux Architecture · operational reference

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

Reference boundaryLinux Architecture
Topic pathLinux Fundamentals → Linux Architecture
Runtime stateLinux Architecture describes the practical boundary between hardware, the Linux kernel and user-space processes, with system calls, device drivers, virtual filesystems and libraries acting as interfaces rather than one undifferentiated operating-system layer.
Fast checks- Identify architecture, process, privilege context and the kernel/user-space boundary relevant to the observation. - Trace the resource through library/runtime, system call or virtual-filesystem interface rather than inferring kernel state from an application error alone. - Separate kernel capability, loaded driver/module state, configuration and actual device/resource availability. - Verify the consumer-visible operation after proving the responsible layer instead of stopping at component presence.
Verification chainhardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible result 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 boundaryArchitecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use. 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?