Svashasan Logo
Simulated data

Operating Systems and Embedded Software · Kernel

Linux Kernel

Also known as Linux, mainline kernel

BeginnerSource-checked · awaiting technical reviewLast reviewed 6 December 2026

The core of the Linux operating system: a monolithic but modular kernel that manages processes, memory, devices, file systems and networking. It is distributed under GPL version 2 and supports many processor architectures.

Explanation

The Linux kernel provides true multitasking, virtual memory, shared libraries, demand loading and multistack networking. It runs on architectures including x86-64, Arm, PowerPC and MIPS, and has been ported to processors without an MMU with reduced functionality. It is distributed under the GNU General Public License v2.

Although the kernel is monolithic, with drivers and subsystems in kernel space, it is highly modular: features can be built in or loaded at runtime as kernel modules. Automotive-relevant subsystems include SocketCAN for CAN buses, the generic interrupt layer, a scheduler with real-time and deadline policies, the cgroups and namespaces used by containers, and KVM for virtualization.

With the PREEMPT_RT configuration the kernel becomes fully preemptible apart from a few critical paths. This reduces latency but does not by itself guarantee deadlines. Product teams must also plan how to track security fixes over the vehicle's service life.

How it works

User programs request services through system calls. The kernel schedules threads on CPUs, maps virtual to physical memory through the MMU and dispatches hardware interrupts to drivers. Drivers bind to devices discovered on buses or described in the device tree, and expose them through device files, sysfs or network interfaces. Kconfig options select which features are built into the image and which become loadable modules.

Automotive applications

  • Base OS for infotainment, telematics and gateway ECUs
  • CAN and Ethernet networking on Linux-based controllers
  • Virtualization hosts using KVM
  • Container hosts on central vehicle computers

Example

On a zonal controller the kernel's SocketCAN stack exposes two CAN controllers as can0 and can1. A SCHED_FIFO thread processes the frames, and a cgroup limits the CPU share of a logging service.

An illustrative example: any figures in it are worked numbers, not measurements.

References

  1. Linux kernel release 6.x (admin guide README) (opens in a new tab)

    The Linux Kernel documentation (kernel.org) · Project documentation · What is Linux?; On what hardware does it run? · retrieved 6 December 2026

    “Linux is a clone of the operating system Unix, written from scratch by Linus Torvalds”
  2. Real-time preemption: Theory of operation (opens in a new tab)

    The Linux Kernel documentation (kernel.org) · Project documentation · Preface · retrieved 6 December 2026

    “PREEMPT_RT transforms the Linux kernel into a real-time kernel.”

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.