cant_sleep(9)
π€ cant_sleep(9) β a Kernel API Manual moment π€
okay bestie, this is the manual page for cant_sleep(9) from the Kernel API Manual, and it is lowkey iconic. Itβs an annotation for functions that cannot sleep β yes, the name is literally the whole vibe. π«Ά
πΈ NAME πΈ
cant_sleep β annotation for functions that cannot sleep. No cap, thatβs the entire package: it tags functions that cannot sleep. π΄π«
β¨ SYNOPSIS β¨
the whole synopsis is literally just:
cant_sleep
π DESCRIPTION π
okay so picture this: this macro will print a stack trace if it is executed with preemption enabled. Thatβs it. Thatβs the whole behavior. Itβs giving βsnitch on the stackβ energy ππ₯.
π SEE ALSO π
go check these besties:
- Kernel file
./include/linux/kernel.h might_sleep(9)cant_migrate(9)non_block_start(9)non_block_end(9)enum system_states(9)
π
this has been cant_sleep(9) from source/version ./include/linux, dated October 2026 β mwah, stay iconic bestie πβ¨
π¦ 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