pm_runtime_blocked(9)
π pm_runtime_blocked β the "is runtime PM even allowed rn" check
okay so bestie, you're in the Kernel API Manual (that's the section 9 energy, kernel devs only, iykyk) and you wanna know if runtime power management is currently blocked from being enabled. This is that girl. π
β¨ NAME β¨
pm_runtime_blocked β literally just checks if runtime PM enabling is blocked. That's the whole vibe check. π
π¦ SYNOPSIS π¦
bool pm_runtime_blocked (struct device *dev );
yes it returns a bool, yes it takes exactly one arg, no there are no surprises here, we love a low-drama function signature π«Ά
πΈ ARGUMENTS πΈ
devβ the target device, aka the main character of this whole operation π
π DESCRIPTION π
no cap, do not call this function outside system suspend/resume code paths. That's the rule, bestie, and we do not break it. π«
Likeβ¦ it's not a general-purpose little helper you sprinkle around your driver for funsies. It lives inside the suspend/resume flow and that's where it stays. Periodt. β¨
π SEE ALSO π
the whole extended friend group, fr fr β every single one of these is part of the lore:
pm_suspend_ignore_children(9)pm_runtime_get_noresume(9)pm_runtime_put_noidle(9)pm_runtime_suspended(9)pm_runtime_active(9)pm_runtime_status_suspended(9)pm_runtime_enabled(9)pm_runtime_has_no_callbacks(9)pm_runtime_mark_last_busy(9)pm_runtime_is_irq_safe(9)pm_runtime_idle(9)pm_runtime_suspend(9)pm_runtime_autosuspend(9)pm_runtime_resume(9)pm_request_idle(9)pm_request_resume(9)pm_request_autosuspend(9)pm_runtime_get(9)pm_runtime_get_sync(9)pm_runtime_resume_and_get(9)pm_runtime_put(9)__pm_runtime_put_autosuspend(9)pm_runtime_put_autosuspend(9)pm_runtime_put_sync(9)pm_runtime_put_sync_suspend(9)pm_runtime_put_sync_autosuspend(9)pm_runtime_set_active(9)pm_runtime_set_suspended(9)pm_runtime_disable(9)pm_runtime_use_autosuspend(9)pm_runtime_dont_use_autosuspend(9)
and if you wanna read the source of truth, it's chilling in the kernel file ./include/linux/pm_runtime.h π (yes, all lowercase, yes, that's just how it is)
okay that's the whole page, bestie π and for the cute sign-off: this lil beauty ships from ./include/linux and it's dated October 2026 β mark your calendars, she's timeless π§βπ
π¦ 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