arch_kexec_locate_mem_hole(9)
π arch_kexec_locate_mem_hole(9) π
okay so bestie, welcome to the Kernel API Manual page for arch_kexec_locate_mem_hole(9) β this is literally the function that finds free memory to place the segments. no cap, that's the whole vibe. π
β¨ NAME β¨
arch_kexec_locate_mem_hole β Find free memory to place the segments. π―
π¦ SYNOPSIS π¦
int arch_kexec_locate_mem_hole (struct kexec_buf *kbuf );
it's giving "one function, one job" energy, and honestly? iconic. π
π ARGUMENTS π
kbufβ the parameters for the memory search. that's it, that's the arg, bestie. π«Ά
π₯ DESCRIPTION π₯
On success, kbuf->mem will have the start address of the memory region found. so like, when it works, the start address of the memory region it found is sitting right there in kbuf->mem. slay. β¨
π RETURN π
It returns 0 on success and a negative errno on error. periodt. π
πΈ SEE ALSO πΈ
- Kernel file
./include/linux/kexec.h struct kexec_buf(9)
mwah π this little sign-off is folding in the footer: source/version ./include/linux, date October 2026, page arch_kexec_locate_mem_hole(9) β bye bestie, go find that memory hole! π«Ά
π¦ 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