ENUM SYSTEM_STATES(9)
π NAME π
okay bestie, welcome to the enum system_states(9) page πΈ this is the enum of values used for system_state β literally the "what phase is the kernel in rn" vibe check. periodt.
β¨ SYNOPSIS β¨
enum system_states {
SYSTEM_BOOTING ,
SYSTEM_SCHEDULING ,
SYSTEM_FREEING_INITMEM ,
SYSTEM_RUNNING ,
SYSTEM_HALT ,
SYSTEM_POWER_OFF ,
SYSTEM_RESTART ,
SYSTEM_SUSPEND
};
π Constants π
SYSTEM_BOOTINGβ0, no init needed πΆSYSTEM_SCHEDULINGβ system is ready for scheduling; OK to use RCU β¨ she's awake and ready to run thingsSYSTEM_FREEING_INITMEMβ system is freeing all of initmem; almost running π so close bestieSYSTEM_RUNNINGβ system is up and running π main character energySYSTEM_HALTβ system entered clean system halt state π«Ά peaceful exit vibesSYSTEM_POWER_OFFβ system entered shutdown/clean power off state π lights out, iconicSYSTEM_RESTARTβ system entered emergency power off or normal restart π₯ plot twist eraSYSTEM_SUSPENDβ system entered suspend or hibernate state π§ nap time fr fr
β οΈ Note β οΈ
bestie do NOT reorder these states, okay? π The ordering of the states must not be changed as code checks for<,<=,>,>=STATE. Like the comparisons are literally built on this order. no cap π«Ά
π¦ SEE ALSO π¦
Kernel file ./include/linux/kernel.h: might_sleep(9), cant_sleep(9), cant_migrate(9), non_block_start(9), non_block_end(9) π go read those too, iykyk.
mwah π signed off from ./include/linux, October 2026 edition, for the enum system_states(9) manual β slay and stay ordered β¨
π¦ 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