Writing a Book on Linux Kernel Principles is No Easy Task

Writing a Book on Linux Kernel Principles is No Easy Task

Hello everyone, I am Bug Jun~ In most people’s impression, writing a technical book is just about organizing what you know. However, when the subject is the Linux kernel, it becomes like performing ballet on a tightrope — one of the most complex open-source software in the world, a giant system composed of 28 million … Read more

New Version of Raspberry Pi OS Released: Supports Linux Kernel 6.1 LTS

New Version of Raspberry Pi OS Released: Supports Linux Kernel 6.1 LTS

Source: IT Home Author: Xiao Gongzi The Raspberry Pi Foundation has released a new version of the official Raspberry Pi OS for Raspberry Pi computers, featuring updated components, bug fixes, and various performance improvements. The most significant change in Raspberry Pi OS 2023-05-03 is the kernel upgrade from the long-term supported Linux 5.15 LTS to … Read more

Understanding the Low-Level Implementation of Atomic Operations in the Linux Kernel (armv8-aarch64)

Understanding the Low-Level Implementation of Atomic Operations in the Linux Kernel (armv8-aarch64)

Typically, a line of code like<span><span>a = a + 1</span></span> translates into three assembly instructions: ldr x0, &aadd x0,x0,#1str x0,&a That is, (1) read the variable a from memory into the X0 register, (2) add 1 to the X0 register, (3) write the value of X0 back to memory a. Since there are three instructions, … Read more

Insights into Linux Character Device Drivers

Insights into Linux Character Device Drivers

Hello, I am Lao Wu, continuing to document my learning insights. 1. Tips for Staying Focused Do the most important tasks in the morning. Stay in a distraction-free environment, such as a library. It’s completely normal to feel a bit of negativity before you start working. Make “happy moments” a part of your plan. Have … Read more

Comic Analysis: What Does the Linux Kernel Look Like?

Comic Analysis: What Does the Linux Kernel Look Like?

(Click the blue text above to quickly follow us) Source: Linux China / bestony https://linux.cn/article-8290-1.html If you have good articles to submit, please click → here for details Today, I will interpret a comic from TurnOff.us titled “InSide The Linux Kernel“. TurnOff.us is a geek comic website where the author Daniel Stori has drawn some … Read more

Linux USB Audio Driver Vulnerability Exploited by Malicious USB Devices in the Wild

Linux USB Audio Driver Vulnerability Exploited by Malicious USB Devices in the Wild

A critical vulnerability exists in the USB audio driver of the Linux kernel that may lead to out-of-bounds memory reads. This vulnerability has been patched by Takashi Iwai from SUSE. If an attacker gains physical access to the system, they can exploit malicious USB devices to escalate privileges, tamper with system memory, or execute arbitrary … Read more

C Language Macro Expansion Rules: The Magic of Macros in the Linux Kernel

C Language Macro Expansion Rules: The Magic of Macros in the Linux Kernel

1. Basics of Macro Definition: The Essence of Text Replacement A macro is one of the core functionalities of the C language preprocessing phase, and it is essentially text replacement, expanded by the preprocessor before compilation. Basic Syntax #define macro_name replacement_text Example: #define PI 3.1415926 #define MAX(a, b) ((a) > (b) ? (a) : (b)) … Read more

The C Language in Operating Systems: Applications of C in the Linux Kernel

The C Language in Operating Systems: Applications of C in the Linux Kernel

The C Language in Operating Systems: Applications of C in the Linux Kernel In the field of operating systems, the C language is undoubtedly a crucial programming language. Especially in the development of the Linux kernel, C serves as the primary programming language, allowing users to interact with hardware at a lower level. In this … Read more

Detailed Explanation of ARMv8/ARMv9 Interrupts: Software Aspects – An Introduction to Linux Kernel Interrupts

Detailed Explanation of ARMv8/ARMv9 Interrupts: Software Aspects - An Introduction to Linux Kernel Interrupts

Table of Contents 1 Definition of the Linux Kernel ARM64 Interrupt Vector Table 2 Setting the Base Address of the Interrupt Vector Table in Linux Kernel ARM64 3 Introduction to the kernel_ventry Macro 4 Unimplemented Exception Vectors: elx_yyy_invalid 5 Introduction to el1_irq – Jumping to the Registered Handler Function 6 handle_domain_irq 7 Introduction to Interrupt … Read more

March Technical Progress in RISC-V

March Technical Progress in RISC-V

✦ ✧ RISC-V March Progress Report ✦ Meta is Testing Its First RISC-V Based Chip for AI Training According to a report by Tom’s Hardware on March 11, 2025, Meta is testing its first AI chip based on the RISC-V architecture for AI training. Previously, Meta primarily used high-end AI GPUs from NVIDIA, such as … Read more