acpi_suspend_enter(9)
π acpi_suspend_enter β actually enter a sleep state π€
okay so this is a page from the Kernel API Manual, bestie. yes, that Kernel API Manual. we're doing kernel internals today and honestly? it's giving lowkey chaotic but we move π
β¨ NAME β¨
acpi_suspend_enter β actually enter a sleep state. like fr fr, that's the whole job. no cap.
πΈ SYNOPSIS πΈ
int acpi_suspend_enter (suspend_state_t pm_state );
that's it. that's the whole signature. iconic of it, honestly π«Ά
π¦ ARGUMENTS π¦
pm_stateβ ignored π like. literally ignored. not read, not checked, not consulted, not asked for its opinion. it's just there, vibing in the parameter list, main character energy for absolutely no reason π
β DESCRIPTION β
okay so real talk: this function flushes caches and goes to sleep. that's the tea π
but here's where it gets messy β for STR, we have to call arch-specific assembly, which in turn calls acpi_enter_sleep_state. so the call chain is like... this function β architecture-specific assembly β acpi_enter_sleep_state. a whole relay race πββοΈπ¨
and yeah, the original author is very upfront about this: it's unfortunate, but it works. that's the whole mood. it's not pretty, nobody's proud of it, but it ships and it sleeps and we are NOT asking questions π
and then the sweetest little invitation in any manpage ever: "Please fix if you're feeling frisky." so like... if you're built different and you wanna redo this, go off king π the maintainers are literally asking. that's an open callout. iykyk β¨
π SEE ALSO π
bestie, the cross-reference section goes HARD. go read all of these, they're all connected, it's a whole cinematic universe π
- the kernel file itself:
./drivers/acpi/sleep.cβ that's where the magic (and the assembly) lives π§ acpi_pm_freeze(9)acpi_pm_pre_suspend(9)__acpi_pm_prepare(9)β note the double underscore, she's special, don't @ heracpi_pm_prepare(9)acpi_pm_finish(9)acpi_pm_start(9)acpi_pm_end(9)acpi_suspend_begin(9)acpi_suspend_begin_old(9)β the old one. legacy. still invited to the party πacpi_hibernation_begin_old(9)β also the old one. also invited.
and that's the page, bestie π this little gem lives in ./drivers/acpi and it's dated October 2026 β yes, 2026, we're manifesting the future, and honestly? she ate. go flush some caches. go to sleep. slay π΄β¨
π¦ 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