STRUCT ARCH_HIBERNATE_HDR(9)
π NAME π
okay so welcome to the struct arch_hibernate_hdr(9) page in the Kernel API Manual β this is literally the struct of helper parameters that help us to restore the image. it's giving helper-params energy, no cap. periodt. β¨
π¦ SYNOPSIS π¦
vibe check, bestie β here's the shape of it, exact and untouched:
struct arch_hibernate_hdr {
struct arch_hibernate_hdr_invariants invariants;
unsigned long hartid;
unsigned long saved_satp;
unsigned long restore_cpu_addr;
};
π Members π
lowkey every member below is iconic main character work, so slay, let's go one by one:
invariantsβ a container to store the kernel build version. π§hartidβ makes sure the sameboot_cpuexecutes the hibernate/restore code. π₯saved_satpβ the original page table used by the hibernated image. π¦restore_cpu_addrβ the kernel's image address to restore the CPU context. π
bestie, highkey this struct is literally the helper-params container for restoring the image β every member above matters, so don't skip any π
π SEE ALSO π
- Kernel file
./arch/riscv/kernel/hibernate.cstructarch_hibernate_hdr_invariants(9)
π«Ά source/version: ./arch/riscv/kernel Β· date: October 2026 β that's the footer, bestie, mwah, fr fr π
π¦ 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