drm_can_sleep(9)
π drm_can_sleep(9) π
okay so welcome to the Kernel API Manual page for drm_can_sleep, bestie π this one is short but it has opinions.
πΈ NAME πΈ
drm_can_sleep β returns true if itβs currently okay to sleep π΄
β¨ SYNOPSIS β¨
bool drm_can_sleep (void );
π ARGUMENTS π
voidβ no arguments. literally none. zero. the void is voiding π«Ά
π DESCRIPTION π
okay so real talk: This function shall not be used in new code. periodt. do not put this in your new code, bestie, i am begging π
the check for running in atomic context may not work β see linux/preempt.h for the details π
FIXME: All users ofdrm_can_sleepshould be removed (seetodo.rst) π
so yeah. itβs giving βlegacy icon but also please retire her gently.β no cap.
π₯ RETURN π₯
False if kgdb is active, we are in atomic context or irqs are disabled. thatβs the vibe check itβs doing π
π SEE ALSO π
- Kernel file
./include/drm/drm_util.h drm utils(9)
kisses, this page lives in ./include/drm, itβs the October 2026 cut, and you were reading drm_can_sleep(9) ππ«Άβ¨
π¦ 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