kho_preserve_vmalloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ kho_preserve_vmalloc(9) β€” Kernel API Manual πŸŽ€

okay bestie, welcome to the Kernel API Manual entry for kho_preserve_vmalloc(9) β€” it's giving kernel handover realness and we're gonna keep every detail cute and intact πŸ’–


✨ NAME ✨

kho_preserve_vmalloc β€” preserve memory allocated with vmalloc() across kexec

πŸ¦‹ SYNOPSIS πŸ¦‹

int kho_preserve_vmalloc (void *ptr , struct kho_vmalloc *preservation
);

πŸ’… ARGUMENTS πŸ’…

  • ptr β€” pointer to the area in vmalloc address space
  • preservation β€” placeholder for preservation metadata

🌸 DESCRIPTION 🌸

okay so this one instructs KHO to preserve the area in vmalloc address space at ptr. The physical pages mapped at ptr will be preserved, and on successful return preservation will hold the physical address of a structure that describes the preservation. no cap, that's the whole flow πŸ’«

πŸ’€ NOTE πŸ’€

bestie, heads up: the memory allocated with vmalloc_node variants cannot be reliably restored on the same node 😭

πŸ”₯ RETURN πŸ”₯

  • 0 on success
  • error code on failure

🌈 SEE ALSO 🌈

Kernel file: ./kernel/liveupdate/kexec_handover.c


xoxo bestie, footer sign-off time πŸ’– source/version is ./kernel/liveupdate, dated October 2026, and this whole page is still serving kho_preserve_vmalloc(9) β€” periodt πŸ’…βœ¨

πŸ“¦ where this page comes from