pm_runtime_status_suspended(9)
π pm_runtime_status_suspended β¨
okay bestie, welcome to the Kernel API Manual entry for pm_runtime_status_suspended β this one's short and sweet and honestly kind of a vibe.
πΈ NAME πΈ
pm_runtime_status_suspended β the little function that checks whether the runtime PM status is "suspended" π
β¨ SYNOPSIS β¨
bool pm_runtime_status_suspended (struct device *dev );
π«Ά ARGUMENTS π«Ά
devβ the target device π like, the one you're asking about, no cap.
π¦ DESCRIPTION π¦
So here's the tea, bestie: this returns true if the runtime PM status of dev is RPM_SUSPENDED, and false otherwise. That's it. That's the whole function π
And the iconically unbothered part? It does this regardless of whether or not runtime PM has been enabled for dev. She does not care. She is not checking that. Periodt. π₯
β οΈ okay but listen, this is the important bit and I need you to lock in: 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 the runtime PM status ofdevcannot change. Otherwise it's giving stale-info energy and you'll be sad π
π SEE ALSO π
Kernel file ./include/linux/pm_runtime.h β and the whole runtime PM friend group, fr fr:
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_enabled(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)
π a lil sign-off π
this page lives under ./include/linux in the Kernel API Manual, dated October 2026 β mwah, go check your device's status responsibly πβ¨π§ββοΈ
π¦ 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