suspend_set_ops(9)
β¨ suspend_set_ops(9) β¨
okay so bestie, welcome to the Kernel API Manual, section 9 β yes we're in the kernel docs now, put your big-girl hat on π
this one's short but it's lowkey important, iykyk.
π NAME π
suspend_set_ops β literally just set the global suspend method table. that's it. that's the whole vibe. it hands the kernel the table of operations it should use when suspending. periodt.
πΈ SYNOPSIS πΈ
void suspend_set_ops (const struct platform_suspend_ops *ops );
she returns void (nothing back, no notes, no drama) and takes exactly one arg. not me being obsessed with a one-liner signature π«Ά
π¦ ARGUMENTS π¦
opsβ the suspend operations you want to use π (type isconst struct platform_suspend_ops *, so likeβ¦ pointer to const, be normal about it). this is the table that becomes the global suspend method table, so yeah, main character energy β choose wisely π
ngl the whole point is that this is global. there's one table, and this function sets it. that's the entire job bestie, no cap.
π SEE ALSO π
- the kernel file
./kernel/power/suspend.cβ go read it, it's giving source of truth π pm_suspend_default_s2idle(9)suspend_valid_only_mem(9)suspend_prepare(9)suspend_enter(9)suspend_devices_and_enter(9)suspend_finish(9)enter_state(9)pm_suspend(9)
all of these are your little friends in the same sleep/wake friend group, go say hi β¨
and that's the page!! short, sweet, slays π
mwah π β this cutie lives under ./kernel/power, it's dated October 2026, and it's page suspend_set_ops(9) of the Kernel API Manual. stan a tidy manpage fr fr πΈ
π¦ 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