arch_kexec_locate_mem_hole(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 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