resume_target_kernel(9)
π resume_target_kernel(9) π
okay bestie, welcome to the Kernel API Manual β today's main character is resume_target_kernel(9), and she's here to bring your hibernation image back online. no cap, this is the "we're so back" moment π«Άβ¨
πΈ NAME πΈ
resume_target_kernel β Restore system state from a hibernation image. literally the restore-from-hibernation glow-up π
β¨ SYNOPSIS β¨
int resume_target_kernel (bool platform_mode );
π ARGUMENTS π
platform_modeβ whether or not to use the platform driver. that's the whole vibe check for this arg, bestie π
π¦ DESCRIPTION π¦
so here's the tea: resume_target_kernel executes device drivers' "noirq" and "late" freeze callbacks, restores the contents of highmem that have not been restored yet from the image, and runs the low-level code that will restore the remaining contents of memory and switch to the just restored target kernel. it's giving "wake up, we're switching to the target kernel" ππ₯
π SEE ALSO π
the whole friend group shows up here π«Ά:
- 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_pre_restore(9)platform_restore_cleanup(9)platform_recover(9)swsusp_show_speed(9)create_image(9)hibernation_snapshot(9)hibernation_restore(9)hibernation_platform_enter(9)power_down(9)hibernate(9)hibernate_quiet_exec(9)software_resume_initcall(9)
okay that's the page, bestie π the source/version corner is ./kernel/power, the date is October 2026, and this icon is officially resume_target_kernel(9). slay, restore responsibly, and stay 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