pm_generic_runtime_resume(9)
π pm_generic_runtime_resume(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for pm_generic_runtime_resume, and honestly? It's a little cutie. A one-job icon. Let's get into it π
β¨ SYNOPSIS β¨
int pm_generic_runtime_resume (struct device *dev );
Like, that's the whole vibe. She takes a device pointer and hands you back an int. Simple. Elegant. Slay π
πΈ ARGUMENTS πΈ
devβ the Device to resume. That's it, that's the argument. She wakes it up, periodt π
π¦ DESCRIPTION π¦
Okay so here's the tea β β first thing, this function checks: does dev's driver have PM operations defined, and do those operations include ->runtime_resume?
If yes: she executes it and returns its error code. Go off, queen π
If no: she returns 0. No drama, no fuss, just a chill zero π
That's genuinely the entire personality. Lowkey obsessed with how straightforward she is, ngl.
fr fr bestie, don't overthink this one β the return value is either the driver callback's error code or 0, and those are the only two possibilities. No cap π
π₯ SEE ALSO π₯
Kernel file ./drivers/base/power/generic_ops.c
And the whole friend group π β every single one of these generic PM callback besties:
pm_generic_runtime_suspend(9)pm_generic_prepare(9)pm_generic_suspend_noirq(9)pm_generic_suspend_late(9)pm_generic_suspend(9)pm_generic_freeze_noirq(9)pm_generic_freeze(9)pm_generic_poweroff_noirq(9)pm_generic_poweroff_late(9)pm_generic_poweroff(9)pm_generic_thaw_noirq(9)pm_generic_thaw(9)pm_generic_resume_noirq(9)pm_generic_resume_early(9)pm_generic_resume(9)pm_generic_restore_noirq(9)pm_generic_restore_early(9)pm_generic_restore(9)pm_generic_complete(9)
π«Ά and that's the page!! this icon lives in ./drivers/base/power, the version vibes are dated October 2026, and yes she's still pm_generic_runtime_resume(9) β main character energy forever π
β¨ go resume something, bestie π¦
π¦ 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