Tagged articles
device driver
16 articles · Page 1 of 1
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

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.
LinuxSCI Moduleboot process
0 likes · 2 min read

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

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.
APICLinuxdevice driver
0 likes · 26 min read

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

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.
KVMLinux kernelarm64
0 likes · 13 min read

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

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

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 ModelLinuxdevice driver
0 likes · 9 min read

This guide explains what a Linux driver is, classifies character, block and network devices, walks through the open() system call flow from user space to the kernel’s VFS and driver list, and shows how to write, compile, and load a simple character device driver module.
Kernel ModuleLinuxVFS
0 likes · 20 min read

This article systematically explains the Linux driver ecosystem by covering the bus‑device‑driver model, the role of device trees in decoupling hardware description from driver code, and step‑by‑step guidance for creating a custom development board with full DTS and kernel integration.
Device TreeEmbeddedLinux
0 likes · 22 min read

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


21CTONov 11, 2021 · Fundamentals
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.
Kernel ModuleLinuxMakefile
0 likes · 13 min read

This tutorial walks you through the Linux kernel source layout, required build tools, cross‑compilation setup, how to compile a kernel image, generate device‑tree blobs, build standalone .ko modules, and integrate those modules into a custom kernel for ARM boards.
ARMCross‑compilationLinux
0 likes · 15 min read

This article explains how Linux device drivers use signal‑driven asynchronous I/O to notify applications, details the required driver and user‑space code, and walks through the POSIX AIO API functions and their integration with kernel drivers.
AIOLinuxPOSIX
0 likes · 13 min read

This article explains the concepts of blocking and non‑blocking I/O in Linux device drivers, compares their implementations, demonstrates how select and poll are used for asynchronous access, and provides sample driver code illustrating both approaches.
Linuxblocking I/Odevice driver
0 likes · 7 min read
