Deepin Linux
Author

Deepin Linux

Research areas: Windows & Linux platforms, C/C++ backend development, embedded systems and Linux kernel, etc.

441
Articles
1
Likes
1.7k
Views
0
Comments
Recent Articles

Latest from Deepin Linux

100 recent articles max
Deepin Linux
Deepin Linux
May 22, 2026 · Fundamentals

What is nullptr and why should it replace NULL in modern C++?

The article explains that NULL is a macro equal to integer 0, which can cause type‑mixing errors in overload resolution and template deduction, while the C++11 keyword nullptr has its own std::nullptr_t type, providing strict pointer semantics, eliminating overload ambiguities, improving safety, readability, and integration with modern C++ features.

CNULLfunction overload
0 likes · 24 min read
What is nullptr and why should it replace NULL in modern C++?
Deepin Linux
Deepin Linux
May 22, 2026 · Backend Development

Mastering the Zero‑Copy Trio: sendfile, mmap, and splice

This article provides a comprehensive, step‑by‑step analysis of Linux zero‑copy mechanisms—sendfile, mmap, and splice—detailing their internal workflows, performance trade‑offs, code examples, and practical selection guidelines for high‑throughput backend development.

LinuxPerformancemmap
0 likes · 41 min read
Mastering the Zero‑Copy Trio: sendfile, mmap, and splice
Deepin Linux
Deepin Linux
May 21, 2026 · Fundamentals

From Zero to One: Dissecting the Underlying Principles of Linux File I/O

This article walks through the complete Linux file I/O workflow—from opening, reading, and writing files, to kernel‑level system call execution and the differences among five major I/O models—explaining buffers, caches, blocking vs. non‑blocking modes, and performance‑impacting trade‑offs.

BuffersC ProgrammingFile I/O
0 likes · 42 min read
From Zero to One: Dissecting the Underlying Principles of Linux File I/O
Deepin Linux
Deepin Linux
May 20, 2026 · Fundamentals

Mastering ramfs and tmpfs: Deep Dive into Linux’s High‑Speed In‑Memory Filesystems

This article explains the inner workings of Linux’s ramfs and tmpfs memory file systems, covering kernel page‑cache and shmem mechanisms, allocation and reclamation processes, size and inode limits, swap interaction, practical mounting commands, and suitable use‑cases compared with traditional disk‑based file systems.

IO performanceLinux kernelmemory file system
0 likes · 32 min read
Mastering ramfs and tmpfs: Deep Dive into Linux’s High‑Speed In‑Memory Filesystems
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
Deepin Linux
Deepin Linux
May 17, 2026 · Fundamentals

Why Wait Queues Matter: Mastering Linux Kernel Process Sleep and Wakeup

This article explains the Linux kernel wait‑queue mechanism, detailing its data structures, sleep states, step‑by‑step process‑sleep and wake‑up procedures, core APIs, and a practical key‑driver example that demonstrates efficient blocking I/O without wasting CPU cycles.

Linux kernelblocking I/Odriver development
0 likes · 26 min read
Why Wait Queues Matter: Mastering Linux Kernel Process Sleep and Wakeup
Deepin Linux
Deepin Linux
May 16, 2026 · Fundamentals

Mastering SMP Multi-Core Out-of-Order Execution to Grasp Linux Concurrency

This article deeply dissects the hardware origins of SMP multi‑core out‑of‑order execution, explains four classic memory‑reordering scenarios, and shows how Linux kernel memory barriers constrain the chaos, enabling developers to reliably reason about and fix complex multi‑core concurrency bugs.

CPULinuxSMP
0 likes · 34 min read
Mastering SMP Multi-Core Out-of-Order Execution to Grasp Linux Concurrency
Deepin Linux
Deepin Linux
May 15, 2026 · Backend Development

Master Linux Kernel Delay Mechanisms to Write Reliable Drivers

This article explains the different Linux kernel delay mechanisms—busy delays like udelay, sleep delays like mdelay, and high‑resolution timers—detailing their inner workings, appropriate use cases, performance trade‑offs, and common pitfalls so developers can write efficient, stable driver code for industrial‑grade systems.

Linux kerneldelay mechanismsdriver development
0 likes · 24 min read
Master Linux Kernel Delay Mechanisms to Write Reliable Drivers
Deepin Linux
Deepin Linux
May 14, 2026 · Operations

How to Diagnose Kernel Panic: A Step‑by‑Step Guide to Finding the Root Cause

This article explains what a Linux kernel panic is, enumerates common hardware and driver causes, walks through the panic() function internals, and provides a practical troubleshooting workflow with log analysis, debugging tools, and a concrete driver example to help operators quickly locate and fix the underlying fault.

DebuggingDevice DriversKernel Panic
0 likes · 24 min read
How to Diagnose Kernel Panic: A Step‑by‑Step Guide to Finding the Root Cause
Deepin Linux
Deepin Linux
May 13, 2026 · Fundamentals

Don’t Claim Linux Memory‑Tuning Skills Without Mastering Memory Compaction

This article explains Linux memory compaction—from its core principles and page‑migration mechanics to the different compaction strategies, trigger conditions, practical test cases, and optimization tips—showing how proper compaction resolves fragmentation, improves allocation success, and boosts overall system performance.

LinuxMemory CompactionMemory Fragmentation
0 likes · 47 min read
Don’t Claim Linux Memory‑Tuning Skills Without Mastering Memory Compaction