setup_new_fdt_ppc64(9)
π 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 π«Ά:
check_realloc_usable_mem(9)add_usable_mem(9)kdump_setup_usable_lmb(9)add_usable_mem_property(9)update_usable_mem_fdt(9)load_backup_segment(9)load_elfcorehdr_segment(9)load_crashdump_segments_ppc64(9)setup_purgatory_ppc64(9)cpu_node_size(9)kexec_extra_fdt_size_ppc64(9)arch_kexec_kernel_image_probe(9)arch_kimage_file_post_load_cleanup(9)
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 thesetup_new_fdt_ppc64(9)page from the Kernel API Manual β mwah, bye bestie πβ
π¦ 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