pm_runtime_suspend(9)
πΈ NAME πΈ
okay so bestie, welcome to pm_runtime_suspend(9) from the Kernel API Manual β the synchronous device-suspend moment, and yes sheβs iconic. This function suspends a device synchronously, meaning it doesnβt just send the vibe and bounce; the suspend happens and the call deals with it. π
β¨ SYNOPSIS β¨
int pm_runtime_suspend (struct device *dev );
π ARGUMENTS π
devβ target device. The device youβre trying to suspend, periodt. π―
π₯ RETURN π₯
like, the return value is basically the mood ring of this call, and hereβs the full lineup:
1β success; the device was already suspended. she was already napping, iconic. π΄0β success.-EINVALβ Runtime PM error.-EACCESβ Runtime PM disabled.-EAGAINβ Runtime PM usage counter non-zero or Runtime PM status change ongoing.-EBUSYβ Runtime PM child_count non-zero.-EPERMβ Device PM QoS resume latency 0.-ENOSYSβCONFIG_PMnot enabled.
also, βOther values and conditions for the above values are possible as returned by Runtime PM suspend callbacks.β so donβt come for me if a callback hands back a different number, okay? π
π¦ SEE ALSO π¦
Kernel file ./include/linux/pm_runtime.h β and the whole bestie squad:
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_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)
signed, sealed, delivered by the Kernel API Manual crew β source ./include/linux, dated October 2026, page pm_runtime_suspend(9) πβ¨
π¦ 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