kexec_build_elf_info(9)
π kexec_build_elf_info(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for kexec_build_elf_info, and no cap, it's a short one. But it's important, so let's get into it π«Ά
πΈ NAME πΈ
kexec_build_elf_info β read ELF executable and check that we can use it β¨
Like, it reads an ELF executable and then does a whole vibe check on it to make sure it's actually usable. iykyk.
π SYNOPSIS π
int kexec_build_elf_info (const char *buf , size_t len , struct elfhdr
*ehdr , struct kexec_elf_info *elf_info );
That's the whole signature, character for character, don't come for me π
π¦ ARGUMENTS π¦
okay so this is the part where the original docs simply did not show up. like, they left us on read π. Every single one of these is literally marked -- undescribed --, so I'm not gonna invent lore that isn't there. Facts are facts, periodt.
bufβ-- undescribed --πlenβ-- undescribed --πehdrβ-- undescribed --πelf_infoβ-- undescribed --π
bestie pls don't be mad at me, I'm just the messenger β the manpage genuinely does not describe these four. If you need to know what they do, go read the source, because guessing would be a fake-news moment and we don't do that here π
β SEE ALSO β
the girlies in the same friend group, all living in the kernel files:
- Kernel file
./kernel/kexec_elf.cπ elf_is_ehdr_sane(9)elf_is_phdr_sane(9)elf_read_phdrs(9)elf_read_from_buffer(9)kexec_free_elf_info(9)kexec_elf_load(9)
π a lil sign-off π
that's the page!! short, sweet, and straight from the ./kernel directory, dated October 2026 π mwah, go read the source and slay π
β¨π¦
π¦ 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