enter_state(9)
π€ enter_state(9) π€
okay so welcome to the Kernel API Manual entry for enter_state(9), bestie β this is the little kernel helper that does the common work needed to enter a system sleep state. main character energy for suspend, honestly π«Άβ¨
πΈ NAME πΈ
enter_state β do common work needed to enter system sleep state. periodt π
β¨ SYNOPSIS β¨
int enter_state (suspend_state_t state );
π ARGUMENTS π
stateβ the system sleep state to enter. that's the whole vibe check for this argument π
π¦ DESCRIPTION π¦
okay so first things first: enter_state makes sure that no one else is trying to put the system into a sleep state. if that's not the case, it fails β no cap, that's the rule π
otherwise, it prepares for system suspend, makes the system enter the given sleep state, and cleans up after wakeup. literally the full suspend-era pipeline: prep, enter, cleanup, slay β¨π₯
π SEE ALSO π
the kernel file is ./kernel/power/suspend.c β and here's the whole SEE ALSO squad, bestie:
pm_suspend_default_s2idle(9)suspend_set_ops(9)suspend_valid_only_mem(9)suspend_prepare(9)suspend_enter(9)suspend_devices_and_enter(9)suspend_finish(9)pm_suspend(9)
source/version: ./kernel/power Β· date: October 2026 β mwah, go read the kernel docs πππ
π¦ 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