suspend_enter(9)
β¨ NAME β¨
okay so bestie, this is suspend_enter β and it's literally the function that makes the system enter the given sleep state. that's the whole vibe. π€
(this one lives in the Kernel API Manual, iykyk π)
πΈ SYNOPSIS πΈ
int suspend_enter (suspend_state_t state , bool *wakeup );
like, that's it. two args, one int coming back at you. no cap. β¨
π ARGUMENTS π
stateβ the system sleep state you wanna enter. that's the one, the target, the main character of this call πwakeupβ abool *, and it returns info saying the sleep state should not be re-entered. so it's a little out-param telling you "bestie, don't go back in there" π
π¦ DESCRIPTION π¦
This function should be called after devices have been suspended. that's the rule, that's the assignment, and the way that ordering matters is honestly iconic. devices first, then you enter the sleep state. in that order. periodt. π₯
π SEE ALSO π
Kernel file ./kernel/power/suspend.c β plus the whole friend group:
pm_suspend_default_s2idle(9)suspend_set_ops(9)suspend_valid_only_mem(9)suspend_prepare(9)suspend_devices_and_enter(9)suspend_finish(9)enter_state(9)pm_suspend(9)
like, go read those too, they're all part of the same little power-management squad fr fr π«Ά
β tiny reminder: suspend_enter goes after the devices are already suspended. that's the whole point. don't skip ahead. π
and that's the page, bestie!! this one shipped out of ./kernel/power, all cute and dated October 2026, and it's suspend_enter(9) through and through β 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