get_fdt_index(9)
β¨ NAME β¨
okay so bestie, this is get_fdt_index(9) from the Kernel API Manual, and the name is literally the whole assignment: loop through the kexec segment array and find the index of the FDT segment. no cap, that's the vibe π
πΈ SYNOPSIS πΈ
int get_fdt_index (struct kimage *image );
π ARGUMENTS π
imageβ a pointer tokexec_crash_imageπ«Ά that's the one and only argument, bestie.
π DESCRIPTION π
Returns the index of the FDT segment in the kexec segment array if it's found; otherwise -1 β¨ literally that simple, periodt.
lowkey important: if it's not found, the answer is -1 β that's the whole return situation, okay? okay π
π¦ SEE ALSO π¦
go check these besties:
- Kernel file
./arch/powerpc/kexec/crash.c sync_backup_region_phdr(9)update_crash_elfcorehdr(9)update_crash_fdt(9)arch_crash_handle_hotplug_event(9)
mwah π this cutie comes from the source/version line ./arch/powerpc/kexec, dated October 2026 β all accounted for, no cap ππ
π¦ 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