pm_runtime_enabled(9)
β¨ pm_runtime_enabled β¨
okay so this is a page from the Kernel API Manual, bestie β it's pm_runtime_enabled(9) and it's literally the vibe-check function for runtime power management π
πΈ NAME πΈ
pm_runtime_enabled β check if runtime PM is enabled.
π¦ SYNOPSIS π¦
bool pm_runtime_enabled (struct device *dev );
π ARGUMENTS π
devβ the target device. like, the actual device you're asking about π«Ά
π DESCRIPTION π
Returns true if runtime PM is enabled for dev, or false otherwise. That's it. That's the whole thing. iconic, honestly β¨
β οΈ but bestie, listen β the return value of this function can only be trusted if it's called under the runtime PM lock ofdev, OR under conditions in which runtime PM cannot be either disabled or enabled fordev. no cap. if you're out here calling it raw with no lock and no guarantee, the answer you get back is giving β¨delusionβ¨, not truth π
π₯ SEE ALSO π₯
Kernel file ./include/linux/pm_runtime.h, plus this whole entire squad right here π
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_blocked(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 that's the whole page, bestie!! π§ this lil beauty lives in ./include/linux and the version stamp says October 2026 β so like, future-coded of it fr fr π go forth and check your runtime PM state responsibly, 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