platform_pre_snapshot(9)
πΈ platform_pre_snapshot(9) πΈ
okay so welcome to the Kernel API Manual entry for platform_pre_snapshot(9), bestie β this one is all about getting the machine cute and ready for hibernation β¨
π NAME π
platform_pre_snapshot β call platform to prepare the machine for hibernation π«Ά
π SYNOPSIS π
int platform_pre_snapshot (int platform_mode );
π¦ ARGUMENTS π¦
platform_modeβ whether or not to use the platform driver. like, the vibe check for platform-driver usage π
π DESCRIPTION π
Use the platform driver to prepare the system for creating a hibernate image, if so configured, and return an error code if that fails. no cap β if the setup goes sideways, you get an error code back π
π SEE ALSO π
Kernel file: ./kernel/power/hibernate.c
also pls go read these icons:
pm_hibernation_mode_is_suspend(9)hibernation_set_ops(9)platform_begin(9)platform_end(9)platform_leave(9)platform_finish(9)platform_pre_restore(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)
source/version vibe: ./kernel/power π date: October 2026 π
thatβs the whole page, bestie β slay, hydrate, and may your hibernate image be iconic πβ¨
π¦ 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