pm_generic_restore_early(9)
π pm_generic_restore_early π
okay so bestie, welcome to the pm_generic_restore_early(9) page β it's from the Kernel API Manual, and it's literally the glow-up era for your subsystem's power management. one tiny function, so much main character energy. let's get into it π«Ά
β¨ NAME β¨
pm_generic_restore_early β the generic restore_early callback for subsystems. that's it, that's the whole vibe. it's the lil helper that does the standard restore-early thing so every subsystem doesn't have to hand-roll their own π
πΈ SYNOPSIS πΈ
int pm_generic_restore_early (struct device *dev );
yep, that's the whole signature. returns an int, takes one pointer, very demure, very mindful π
π¦ ARGUMENTS π¦
devβ the device to resume. that's the one and only parameter, bestie. hand it astruct device *and it knows what to do. no cap π
π SEE ALSO π
so the actual code lives in this kernel file, go look if you're nosy (we love a curious queen):
- Kernel file
./drivers/base/power/generic_ops.c
and here's the whole friend group β every sibling callback, all 19 of them, no gatekeeping:
pm_generic_runtime_suspend(9)pm_generic_runtime_resume(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(9)pm_generic_complete(9)
like, the entire power-management squad is here. collect them all πβ¨
ngl, this page is short on purpose β it's one generic callback, not a whole saga. don't go looking for extra options that aren't there, bestie, we're keeping it honest fr fr π
and that's the tea π§ source-wise it's from ./drivers/base/power, dated October 2026, living in the Kernel API Manual. mwah, go restore some early, slay π
π¦ 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