pm_generic_runtime_suspend(9)
π pm_generic_runtime_suspend(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a lil function that lives rent-free in the power-management corner of the kernel, and honestly? She's simple, she's clean, she does exactly one thing. main character energy fr fr π
πΈ NAME πΈ
pm_generic_runtime_suspend β the generic runtime suspend callback for subsystems, no cap π«Ά
β SYNOPSIS β
int pm_generic_runtime_suspend (struct device *dev );
literally that's the whole signature. short, sweet, slay π
π¦ ARGUMENTS π¦
devβ the device we're suspending. that's her. that's the one. the device to suspend π«‘
β¨ DESCRIPTION β¨
okay so here's the vibe check π β if PM operations are defined for the dev's driver, and those operations include ->runtime_suspend, then this function executes it and returns its error code. periodt.
otherwise? it just returns 0. that's it. no drama, no notes, iconic behaviour honestly π§
ngl the whole thing is basically "if the driver has a->runtime_suspend, run it and pass along whatever it says; if not, shrug and return0." lowkey the most chill function in the file ππ
π₯ SEE ALSO π₯
the kernel file this lives in, for when you wanna go read the source yourself:
./drivers/base/power/generic_ops.c
and the whole generic ops friend group β they all show up together, iykyk π:
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_early(9)pm_generic_restore(9)pm_generic_complete(9)
π and that's the whole page bestie π
this lil gem comes to you courtesy of ./drivers/base/power and it's dated October 2026 β screenshot it, frame it, put it on your fridge, 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