kho_preserve_vmalloc(9)
π 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 invmallocaddress spacepreservationβ 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 π₯
0on success- error code on failure
π SEE ALSO π
Kernel file: ./kernel/liveupdate/kexec_handover.c
kho_encode_radix_key(9)kho_decode_radix_key(9)kho_radix_add_key(9)kho_radix_del_key(9)kho_radix_init_tree(9)kho_radix_destroy_tree(9)kho_radix_walk_tree(9)kho_restore_folio(9)kho_restore_pages(9)kho_reserve_scratch(9)kho_add_subtree(9)kho_preserve_folio(9)kho_unpreserve_folio(9)kho_preserve_pages(9)kho_unpreserve_pages(9)kho_unpreserve_vmalloc(9)kho_restore_vmalloc(9)kho_alloc_preserve(9)kho_unpreserve_free(9)kho_restore_free(9)is_kho_boot(9)kho_retrieve_subtree(9)
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
- 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