Tagged articles
16 articles
Page 1 of 1
Deepin Linux
Deepin Linux
May 19, 2026 · Fundamentals

Master the Linux fasync Mechanism and Understand Signal‑Driven Asynchronous Notification

This article explains the Linux kernel fasync mechanism, compares it with other I/O models, details the underlying data structures and key functions, and provides step‑by‑step driver and user‑space code examples for implementing signal‑driven asynchronous notifications in embedded and Linux driver development.

Linux kernelSIGIOasynchronous notification
0 likes · 35 min read
Master the Linux fasync Mechanism and Understand Signal‑Driven Asynchronous Notification
CodeTrend
CodeTrend
Apr 19, 2026 · Fundamentals

Understanding Linux Architecture and Boot Process with Diagrams

This article presents a collection of diagrams that illustrate the Linux system architecture, the SCI module interface framework, device driver placement, and the complete boot sequence from the firmware bootloader through the kernel to the system layer.

Boot ProcessDiagramLinux
0 likes · 2 min read
Understanding Linux Architecture and Boot Process with Diagrams
Linux Code Review Hub
Linux Code Review Hub
Oct 13, 2025 · Fundamentals

Why Linux Uses Its Bus, Device, and Driver Model – A Deep Dive

The presentation walks through Linux’s bus, device, and driver architecture, covering concepts such as decoupling, unified interfaces, sysfs, class views, power management, ACPI matching, automatic module loading, and kernel objects like kobject, kref, and subsys, illustrating why the kernel is designed this way.

ACPIBus Modeldevice driver
0 likes · 2 min read
Why Linux Uses Its Bus, Device, and Driver Model – A Deep Dive
Linux Kernel Journey
Linux Kernel Journey
Sep 13, 2025 · Fundamentals

How Linux Handles Hardware Interrupts: From Signal to Response

This article explains the complete Linux interrupt management process, covering the basics of hardware and software interrupts, the role of programmable interrupt controllers, the CPU's response workflow, top‑half and bottom‑half handling, registration techniques, performance optimizations, and debugging tools, all illustrated with concrete examples and code.

APICInterruptsLinux
0 likes · 26 min read
How Linux Handles Hardware Interrupts: From Signal to Response
Liangxu Linux
Liangxu Linux
Jun 22, 2025 · Operations

How Linux Receives and Sends Network Packets: A Step‑by‑Step Deep Dive

This article walks through the complete Linux network packet lifecycle—from NIC interrupt handling and DMA transfer, through kernel soft‑irq processing, netfilter hooks, and protocol‑stack handling, to the reverse path for sending UDP packets, illustrating each function and queue involved.

UDPdevice driver
0 likes · 13 min read
How Linux Receives and Sends Network Packets: A Step‑by‑Step Deep Dive
Linux Kernel Journey
Linux Kernel Journey
Mar 30, 2025 · Fundamentals

Analyzing KVM Misc Device Initialization and Access on Linux

This article walks through the registration of the KVM misc device in the Linux 5.9 kernel for arm64, explains how /dev/kvm is created via misc_register, and demonstrates a user‑space program that opens the device and uses an ioctl to retrieve the KVM API version, with detailed code analysis.

ARM64KVMLinux kernel
0 likes · 13 min read
Analyzing KVM Misc Device Initialization and Access on Linux
Infra Learning Club
Infra Learning Club
Jan 20, 2025 · Fundamentals

How GPU Kernel Virtualization Works: A Deep Dive into the cgpu Project

This article explains the principles of GPU kernel virtualization by analyzing the cgpu project's source code, detailing kernel interception of device operations, the driver’s file_operations, module initialization and cleanup, procfs interfaces, scheduling logic, and compilation steps on Ubuntu 22.04.

GPU virtualizationKernel ModuleLinux kernel
0 likes · 5 min read
How GPU Kernel Virtualization Works: A Deep Dive into the cgpu Project
Liangxu Linux
Liangxu Linux
Sep 7, 2024 · Fundamentals

How Linux’s Device Driver Model and sysfs Work Together: A Deep Dive

This article explains the Linux kernel device driver model introduced in 2.6, how devices, buses, classes and drivers are represented, how the sysfs virtual filesystem exposes their hierarchy, and walks through the registration and matching process for platform buses, drivers, and devices with detailed code examples.

Linuxdevice driverplatform bus
0 likes · 28 min read
How Linux’s Device Driver Model and sysfs Work Together: A Deep Dive
Liangxu Linux
Liangxu Linux
Sep 5, 2024 · Fundamentals

Why Linux Uses a Bus‑Device‑Driver Model for High Cohesion, Low Coupling

The article explains how Linux separates board‑level information from drivers using a bus‑device‑driver model, illustrating high cohesion and low coupling with concrete code examples, matching mechanisms, and the evolution toward device trees for scalable hardware abstraction.

Bus ModelHigh CohesionLinux
0 likes · 9 min read
Why Linux Uses a Bus‑Device‑Driver Model for High Cohesion, Low Coupling
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Dec 24, 2021 · Fundamentals

Understanding SPI Protocol, Hardware Interface Design, Timing Diagram, and Linux Kernel Driver Framework

SPI is a high‑speed, full‑duplex serial bus using four pins (CS, SCK, MOSI, MISO) with configurable clock polarity and phase, whose timing diagram shows data transfer on clock edges, and Linux provides a driver framework built around spi_driver, spi_transfer, and spi_message structures for reliable sensor communication.

SPISerial Peripheral Interfacedevice driver
0 likes · 8 min read
Understanding SPI Protocol, Hardware Interface Design, Timing Diagram, and Linux Kernel Driver Framework
21CTO
21CTO
Nov 11, 2021 · Fundamentals

Why Write Linux Kernel Modules? A Step‑by‑Step Guide to Building Your First LKM

This tutorial explains why kernel modules are needed, walks through preparing a Linux environment, installing required headers, creating and compiling a simple "Hello, World" module, extending it to a character device driver, and shows how to load, test, and unload the module safely.

C ProgrammingKernel ModuleLinux
0 likes · 13 min read
Why Write Linux Kernel Modules? A Step‑by‑Step Guide to Building Your First LKM