update_usable_mem_fdt(9)
π update_usable_mem_fdt(9) β the Kernel API Manual, bestie edition β¨
Okay so real quick, the page header up top says update_usable_mem_fdt(9) and it lives in the Kernel API Manual, that's the vibe, that's the whole thing.
πΈ NAME πΈ
update_usable_mem_fdt β this one updates the kdump kernel's fdt with the linux,usable-memory and linux,drconf-usable-memory DT properties, as appropriate, so it can restrict its memory usage. Like, it's giving "memory boundaries, but make it a device tree". π
π¦ SYNOPSIS π¦
int update_usable_mem_fdt (void *fdt , struct crash_mem *usable_mem );
π ARGUMENTS π
fdtβ the flattened device tree for the kdump kernel. literally the DT, flattened, for kdump. π«Άusable_memβ the usable memory ranges for the kdump kernel. the good memory. the usable girlies. π
β¨ DESCRIPTION β¨
Returns 0 on success, negative errno on error. That's it, that's the contract, no cap. β
π SEE ALSO π
- Kernel file
./arch/powerpc/kexec/file_load_64.cβ go read it iykyk π check_realloc_usable_mem(9)add_usable_mem(9)kdump_setup_usable_lmb(9)add_usable_mem_property(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)setup_new_fdt_ppc64(9)arch_kexec_kernel_image_probe(9)arch_kimage_file_post_load_cleanup(9)
bestie this is the whole squad of related functions, go say hi to all of them ππ«Ά
And that's a wrap! π This one came out of ./arch/powerpc/kexec and is dated October 2026 β update_usable_mem_fdt(9), signing off, slay, periodt. ππ§ββοΈ
π¦ 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