STRUCT ARCH_HIBERNATE_HDR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 same boot_cpu executes 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.c struct arch_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