platform_pre_restore(9)
π NAME π
okay so bestie, this is platform_pre_restore(9) from the Kernel API Manual π, and it's literally here to prepare for hibernate image restoration. platform_pre_restore β prepare for hibernate image restoration. periodt β¨
β¨ SYNOPSIS β¨
int platform_pre_restore (int platform_mode );
π«Ά ARGUMENTS π«Ά
platform_modeβ tells ya whether or not to use the platform driver. ποΈ
πΈ DESCRIPTION πΈ
So the vibe is: use the platform driver to prepare the system for resume from a hibernation image. π¦
β οΈ Important, bestie: if the restore fails after this function has been called, platform_restore_cleanup must be called. Not optional. π
π¦ SEE ALSO π¦
the whole cross-ref friend group:
- Kernel file:
./kernel/power/hibernate.c pm_hibernation_mode_is_suspend(9)hibernation_set_ops(9)platform_begin(9)platform_end(9)platform_pre_snapshot(9)platform_leave(9)platform_finish(9)platform_restore_cleanup(9)platform_recover(9)swsusp_show_speed(9)create_image(9)hibernation_snapshot(9)resume_target_kernel(9)hibernation_restore(9)hibernation_platform_enter(9)power_down(9)hibernate(9)hibernate_quiet_exec(9)software_resume_initcall(9)
mwah π xoxo β source/version: ./kernel/power Β· date: October 2026 Β· page: platform_pre_restore(9) π
π¦ 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