setup_new_fdt_ppc64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… setup_new_fdt_ppc64 β€” like, the whole vibe check

okay so welcome to the Kernel API Manual, bestie 🫢 this one's a little function called setup_new_fdt_ppc64, and honestly? it's giving "quiet helper that does important stuff." no cap.


✨ NAME ✨

setup_new_fdt_ppc64 β€” updates the flattend device-tree of the kernel being loaded. (and yes, the manpage really does spell it "flattend" β€” not me, i would never 😭 we love a typo with main character energy πŸ’€)


🌸 SYNOPSIS 🌸

int setup_new_fdt_ppc64 (const struct kimage *image , void *fdt , struct
       crash_mem *rmem );

three args, one int, zero drama ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • image β€” the kexec image that's being loaded rn. that's the whole context, bestie πŸ’–
  • fdt β€” the Flattened device tree for the next kernel. like, the tree the next kernel is gonna wake up in 🌈
  • rmem β€” the Reserved memory ranges. literally the memory ranges that are, y'know, reserved πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the actual tea, and it's short but iconic:

returns 0 on success, and a negative errno on error. that's it. that's the whole description. slay, honestly πŸ’…βœ¨

lowkey important: negative errno means error, not "some number." don't be out here ignoring the minus sign πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

the kernel file to go look at:

Kernel file ./arch/powerpc/kexec/file_load_64.c

and the friend group β€” go read these too, they're all kind of the same squad 🫢:


okay that's the whole page, go touch some powerpc code πŸ§šπŸ’œ

πŸ’€ sign-off szn: this lil masterpiece lives in ./arch/powerpc/kexec, it's dated October 2026, and it's the setup_new_fdt_ppc64(9) page from the Kernel API Manual β€” mwah, bye bestie πŸŽ€β­
πŸ“¦ where this page comes from