pm_runtime_suspended(9)
β¨ pm_runtime_suspended(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one is a lil function from the <linux/pm_runtime.h> cinematic universe and honestly? she's giving "quick vibe check, don't trust me outside the group chat" energy. let's get into it π
πΈ NAME πΈ
pm_runtime_suspended β literally just checks whether or not a device is runtime-suspended π¦
π SYNOPSIS π
bool pm_runtime_suspended (struct device *dev );
π« ARGUMENTS π«
devβ the target device, aka the main character of this little story π
π§ DESCRIPTION π§
so basically: this returns true if runtime PM is enabled for dev and its runtime PM status is RPM_SUSPENDED. any other situation? false, periodt. π
β οΈ okay this part is important, no cap: 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 fordevand its runtime PM status cannot change. like, she's not lying to you, she just only knows what she knew at that exact moment π so if the status could be shifting under your feet, bestie, don't come crying to her about it.
π SEE ALSO π
the whole squad shows up for this one, so let's give them their shoutouts π«Ά the kernel file ./include/linux/pm_runtime.h and:
pm_suspend_ignore_children(9)pm_runtime_get_noresume(9)pm_runtime_put_noidle(9)pm_runtime_active(9)pm_runtime_status_suspended(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)
like that is a lot of siblings but every single one of them ate π₯
and that's the whole page, bestie!! tysm for reading, mwah π this icon lives under ./include/linux with an October 2026 date stamp, brought to you by the Kernel API Manual itself β go forth and check your runtime PM status responsibly, ily π§ββοΈππ
π¦ 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