Tagged articles
4 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Jul 31, 2025 · Backend Development

How to Build and Test a Simulated GPIO Character Driver on Linux

This tutorial walks through creating a Linux kernel character driver that simulates four GPIO devices, compiles the module, loads it to automatically generate /dev/mygpio0‑3 nodes, and provides a user‑space program to control the GPIO states via ioctl, including full build and cleanup steps.

CGPIOMakefile
0 likes · 12 min read
How to Build and Test a Simulated GPIO Character Driver on Linux
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
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Sep 21, 2020 · Cloud Computing

How KVM and QEMU Work Together to Power Linux Virtualization

This article explains the KVM architecture, its interaction with QEMU, the step‑by‑step process of creating and running a virtual machine using ioctl calls, and the underlying source code structure that enables hardware‑assisted virtualization on Linux.

KVMKernel ModuleLinux virtualization
0 likes · 9 min read
How KVM and QEMU Work Together to Power Linux Virtualization