setup_purgatory(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ setup_purgatory πŸ¦‹

okay bestie, this is setup_purgatory(9) from the Kernel API Manual, and it's giving β€œtiny setup function with big main-character energy” πŸ’…


🌸 NAME 🌸

setup_purgatory β€” initialize the purgatory's global variables. periodt. ✨

πŸŽ€ SYNOPSIS πŸŽ€

int setup_purgatory (struct kimage *image , const void *slave_code ,
       const void *fdt , unsigned long kernel_load_addr , unsigned long
       fdt_load_addr );

πŸ’– ARGUMENTS πŸ’–

  • image β€” the kexec image. that's the vibe. 🫢
  • slave_code β€” the slave code for the purgatory. iconic. πŸ’…
  • fdt β€” the flattened device tree for the next kernel. yes bestie 🌸
  • kernel_load_addr β€” the address where the kernel is loaded. noted. πŸ‘‘
  • fdt_load_addr β€” the address where the flattened device tree is loaded. slay. ✨

πŸ”₯ RETURN πŸ”₯

0 on success, or a negative errno on error. no cap β€” that's the whole return contract, bestie. πŸ’…

🌈 SEE ALSO 🌈


okay bye bestie 🫢 this page's source/version is ./arch/powerpc/kexec, and it's dated October 2026. mwah πŸ’‹

πŸ“¦ where this page comes from