pm_runtime_get_sync(9)
okay so bestie, welcome to the pm_runtime_get_sync(9) page from the Kernel API Manual π
β¨ this is the one that bumps a device's runtime PM usage counter and wakes it up synchronously β like tapping your fave on the shoulder and being like βhi, you're needed rnβ π«Ά
π NAME π
pm_runtime_get_sync β bump up the usage counter of a device and resume it. That's the whole vibe: counter goes up, device resumes, synchronous, no cap π
β¨ SYNOPSIS β¨
int pm_runtime_get_sync (struct device *dev );
π ARGUMENTS π
devβ the target device, aka the main character you're bumping the counter for and resuming π
π¦ DESCRIPTION π¦
Bump up the runtime PM usage counter of dev and carry out runtime-resume of it synchronously. Like, actually wait for it β synchronous behavior is the assignment, bestie β
The possible return values of this function are the same as for pm_runtime_resume π and the runtime PM usage counter of dev remains incremented in all cases, even if it returns an error code. Yes, even then π the counter stays incremented, so be mindful of that.
Consider using pm_runtime_resume_and_get instead of it, especially if its return value is checked by the caller, as this is likely to result in cleaner code. The original page is literally recommending the cleaner-code route, and we love that for you π«Ά
bestie PSA: if you're checking the return value, pm_runtime_resume_and_get is the one the page suggests considering β cleaner code, less chaos, iconic behavior β¨
πΈ SEE ALSO πΈ
Kernel file ./include/linux/pm_runtime.h β and here's the whole friend group roll call π
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_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)
later bestie ππ this page's source/version is ./include/linux, dated October 2026, and it's the pm_runtime_get_sync(9) page β 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