hibernation_snapshot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hibernation_snapshot(9) β€” kernel API manual, bestie edition πŸ’–

okay so this is hibernation_snapshot(9), straight out of the Kernel API Manual, and it is literally the moment your computer goes "mmkay bestie, everyone freeze, we're making a memory image ✨". buckle up πŸŽ€


🌸 NAME 🌸

hibernation_snapshot β€” quiesce devices and create a hibernation image. that's the whole vibe. devices get quiet, image gets made, slay πŸ’…


✨ SYNOPSIS ✨

int hibernation_snapshot (int platform_mode );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • platform_mode β€” if it's set, use the platform driver to prepare for the transition. if it's not set… don't. that's the whole rule, no cap 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so this routine must be called with system_transition_mutex held. like, that's not a suggestion, that's the assignment. hold the mutex, then call the function. periodt πŸ”₯

⚠️ for real though β€” no system_transition_mutex held? that's a you problem, not a function problem, and the manual is very clear about it 😭

🌈 SEE ALSO 🌈

🫢 the kernel file it lives in:

  • ./kernel/power/hibernate.c

and the whole friend group of related functions β€” go say hi to all of them:

like, that's a full squad. iykyk πŸ’«


okay that's the whole page, mwah πŸ’‹ β€” this one lives in ./kernel/power, dated October 2026, and honestly? iconic of it. go hold that system_transition_mutex and make some good choices πŸ§šβ€β™€οΈβ­πŸ“

πŸ“¦ where this page comes from