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

A Microcontroller Engineer’s Perspective on Embedded Linux

A Microcontroller Engineer's Perspective on Embedded Linux

Introduction This article provides a brief overview of some knowledge related to Embedded Linux, serving as a reference for those who, like me, wish to advance from microcontroller programming to Embedded Linux. With the increasing number of tutorials on Embedded Linux, I believe many friends studying microcontrollers have started to explore this area. What to … Read more

Our Generation of Post-90s: Diligently Tackling the Linux Kernel at ByteDance | Interview with the Outstanding Technical Team

Our Generation of Post-90s: Diligently Tackling the Linux Kernel at ByteDance | Interview with the Outstanding Technical Team

Guests | Zhang Yu, Duan Xiongchun, Song Muchun, Xie Yongji, Deng Liang Author | Ling Min With the rapid evolution of the internet, many star products shine under the halo of the times; but behind the noise, there is a group of people quietly safeguarding the stability of the internet world. Today, we introduce this … Read more

Comic | The Messy State of Linux Kernel Code Due to C Language Usage

Comic | The Messy State of Linux Kernel Code Due to C Language Usage

Postscript: Today is a short comic, mainly intended to illustrate a principle: the key to a clean codebase is not the type of language used, but the people maintaining that codebase. Regardless of how well-designed the codebase is or how advanced the programming language used, if the original principles are not upheld, the end result … Read more

A Perspective on Embedded Linux from a Microcontroller Engineer

A Perspective on Embedded Linux from a Microcontroller Engineer

Introduction This article provides a brief overview of some knowledge related to Embedded Linux, serving as a reference for those who, like me, wish to advance from microcontroller programming to Embedded Linux. With the increasing number of tutorials on Embedded Linux, I believe many friends studying microcontrollers have started to explore this area. What to … Read more

A Brief Discussion on Makefile, Kconfig, and .config Files in the Linux Kernel Source Code

A Brief Discussion on Makefile, Kconfig, and .config Files in the Linux Kernel Source Code

Follow+Star Public Account Number, don’t miss out on exciting content Source | Baiwen Technology WeChat Public Account | Embedded Column The Linux kernel source code contains numerous files, and it can be confusing to understand the relationship between Makefile, Kconfig, and .config. Without a clear understanding of the kernel compilation system, one may struggle with … Read more

Ubuntu 17.10 Confirmed to Use Linux Kernel 4.13 and GCC 7.2

Ubuntu 17.10 Confirmed to Use Linux Kernel 4.13 and GCC 7.2

(Click the public account above to quickly follow) English: SOFTPEDIA, Translation: Open Source China Community www.oschina.net/news/88954/ubuntu-17-10-powered-by-linux-kernel-4-13-gcc-7-2 If you have good articles to submit, please click → here for details The upcoming Ubuntu 17.10 (Artful Aardvark) operating system is powered by the latest Linux Kernel 4.13 and will be included in the stable repository along with … Read more