swait_event_idle_exclusive(9)
π¦ NAME
swait_event_idle_exclusive β okay so this one lets you wait without contributing to system load, bestie π
β¨ SYNOPSIS
swait_event_idle_exclusive (wq , condition );
π ARGUMENTS
wqβ the waitqueue you're gonna wait on, that's literally it π«Άconditionβ a C expression for the event you're waiting for π
π DESCRIPTION
Okay so here's the vibe: your process gets put to sleep, and specifically it goes into TASK_IDLE π΄ β it just chills there until condition evaluates to true. The condition gets checked every single time the waitqueue wq is woken up, no cap π₯
This function is mostly used when a kthread or a workqueue is waiting for some condition and doesn't want to contribute to system load β like, it's resting but it's not gonna mess up your load average, iconic behavior tbh π
Heads up bestie: signals are ignored π like, they will not pull you out of this wait, periodt.
π§ SEE ALSO
Kernel file ./include/linux/swait.h β slay, go read it β¨
π ok that's the whole page!! this came from ./include/linux, dated October 2026, in the Kernel API Manual β swait_event_idle_exclusive(9) besties!! go take a nap in TASK_IDLE and don't touch the load average, mwah ππΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms