pm_runtime_set_suspended(9)
β¨ pm_runtime_set_suspended β Kernel API Manual β¨
okay so bestie, we're in the Kernel API Manual today and the star of the show is pm_runtime_set_suspended(9) π
buckle up, it's a short one but it's lowkey important.
πΈ NAME πΈ
pm_runtime_set_suspended β the function that sets your runtime PM status to "suspended". that's it, that's the vibe π«Ά
π¦ SYNOPSIS π¦
int pm_runtime_set_suspended (struct device *dev );
π ARGUMENTS π
devβ the target device. the main character of this whole operation π
π DESCRIPTION π
So what does it do? It sets the runtime PM status of dev to RPM_SUSPENDED, and it makes sure that any dependencies of it get taken into account. not me making sure your whole dependency situation is handled, no cap π
β οΈ big warning bestie, read this twice: it is not valid to call this function for devices with runtime PM enabled. like, fr fr, don't do it. that's a no-go zone ππ
π SEE ALSO π
a whole friend group of related calls, all living over in the kernel file ./include/linux/pm_runtime.h β¨
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_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_disable(9)pm_runtime_use_autosuspend(9)pm_runtime_dont_use_autosuspend(9)
π«Ά that's the whole page, queen. this one lives in ./include/linux and it's stamped October 2026 β iconic, timeless, iconic. 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