pm_runtime_resume_and_get(9)
β¨ pm_runtime_resume_and_get(9) β¨
okay bestie, welcome to the Kernel API Manual π you're literally about to learn pm_runtime_resume_and_get, and honestly? she's that girl. let's get into it π«Ά
πΈ NAME πΈ
pm_runtime_resume_and_get β bump up the usage counter of a device and resume it. that's it, that's the whole vibe. counter goes up, device wakes up, main character energy π₯
β¨ SYNOPSIS β¨
int pm_runtime_resume_and_get (struct device *dev );
like, no cap, that's the whole signature. int in, int out, struct device pointer goes in the middle π
π ARGUMENTS π
devβ the target device. your lil guy. the one you're doing all this for π¦
π DESCRIPTION π
so here's the tea, bestie π: this function resumes dev synchronously, and only if that resume actually goes through does it increment the device's runtime PM usage counter. it's giving "wake up bestie, then lock in."
the return value is lowkey simple:
- returns
0if the runtime PM usage counter ofdevhas been incremented β - returns a negative error code otherwise π (translation: it did not pan out, don't celebrate yet)
periodt. that's the contract π no hidden drama, no extra steps, just "resume, then bump the counter, or give me a negative number."
π SEE ALSO π
okay this is the part where the friend group gets long, and every single one of them matters, so we're listing all of them fr fr π
Kernel file ./include/linux/pm_runtime.hpm_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_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)
and that's the whole page, bestie, you ate that π β¨
cute lil sign-off before you go π§: this one lives in ./include/linux, and the footer was stamped October 2026 β so like, mark your calendar, she's dated and she knows it ππ
π¦ 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