sync_backup_region_phdr(9)
π sync_backup_region_phdr(9) π β Kernel API Manual, bestie β¨
okay so welcome to the Kernel API Manual page for sync_backup_region_phdr(9) β this is the group chat where we synchronize the backup region offset between the kexec image and the ELF core header. No cap, that's the whole vibe. π«Ά
β¨ NAME β¨
sync_backup_region_phdr β synchronizes the backup region offset between the kexec image and the ELF core header. Periodt. π
πΈ SYNOPSIS πΈ
void sync_backup_region_phdr (struct kimage *image , Elf64_Ehdr *ehdr ,
bool phdr_to_kimage );
π ARGUMENTS π
imageβ Kexec image. Like, the kexec image in question, bestie. πΌοΈehdrβ ELF core header. The ELF core header, exactly. π§phdr_to_kimageβ Iftrue, read the offset from the ELF program header and update the kimage backup region. Iffalse, update the ELF program header offset from the kimage backup region. Direction matters, okay? π
π NOTE π
okay so during kexec_load, this is called with phdr_to_kimage = true. For kexec_file_load and ELF core header recreation during memory hotplug events, it is called with phdr_to_kimage = false.
Returns nothing. Yep, literally no return value β it's giving void main character energy. πβ¨
π¦ SEE ALSO π¦
- Kernel file
./arch/powerpc/kexec/crash.c:update_crash_elfcorehdr(9),get_fdt_index(9),update_crash_fdt(9),arch_crash_handle_hotplug_event(9)β go read these too, bestie, iykyk. π
okay bye bestie π this sync_backup_region_phdr(9) page is from ./arch/powerpc/kexec and dated October 2026 β slay and see you in the kernel source. ππ
π¦ 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