Tagged articles
5 articles
Page 1 of 1
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
Liangxu Linux
Liangxu Linux
Jun 14, 2023 · Backend Development

Mastering Linux Wait Queues: Step‑by‑Step Driver Implementation Guide

This article explains how Linux kernel drivers use wait queues for process sleep and wake‑up, covering static and dynamic initialization, the various wait_event macros, wake‑up functions, complete driver source code, Makefile setup, and step‑by‑step build and testing instructions.

LinuxSynchronizationc++
0 likes · 16 min read
Mastering Linux Wait Queues: Step‑by‑Step Driver Implementation Guide
ITPUB
ITPUB
Oct 22, 2017 · Fundamentals

Why Can't Interrupt Handlers Sleep? Understanding Linux Kernel Sleep and Wakeup Mechanisms

This article explains the purpose and mechanics of process sleep in the Linux kernel, detailing how wait queues and wake‑up functions operate, why sleeping in atomic contexts such as interrupt handlers or while holding spinlocks is unsafe, and demonstrates the resulting deadlock with a sample driver.

Linux kernelSpinlockinterrupt context
0 likes · 16 min read
Why Can't Interrupt Handlers Sleep? Understanding Linux Kernel Sleep and Wakeup Mechanisms
ITPUB
ITPUB
Sep 16, 2016 · Fundamentals

Why Interrupt Handlers Can't Sleep: Deep Dive into Linux Kernel Sleep and Wakeup

This article explains the purpose and mechanics of process sleep in the Linux kernel, describes how wait queues and wake‑up functions operate, and details why sleeping in interrupt context or while holding spinlocks, seqlocks, or RCU locks leads to deadlocks and system crashes.

LinuxSynchronizationinterrupt()
0 likes · 16 min read
Why Interrupt Handlers Can't Sleep: Deep Dive into Linux Kernel Sleep and Wakeup