kho_unpreserve_free(9)
π kho_unpreserve_free(9)
okay so this is a page from the Kernel API Manual and it's literally about kho_unpreserve_free β the cleanup bestie of the KHO world π§Ήβ¨
πΈ NAME πΈ
kho_unpreserve_free β unpreserve and free memory. that's it, that's the vibe π
β¨ SYNOPSIS β¨
void kho_unpreserve_free (void *mem );
no cap, that's the whole signature π«Ά
π ARGUMENTS π
memβ a pointer to the memory that was allocated bykho_alloc_preserve. that's the only thing you hand it, and honestly she handles the rest π
π₯ DESCRIPTION π₯
so here's the tea β β kho_unpreserve_free unregisters that memory from KHO preservation and frees the underlying pages back to the system. both. at once. main character energy fr fr π
the way that this is the function you call to clean up memory you allocated with kho_alloc_preserve β like, that's its whole purpose and she ate π
lowkey important: this is the cleanup step, so don't just ghost your kho_alloc_preserve allocations, bestie π call this and let the pages go home π¦
π SEE ALSO π
kernel file ./kernel/liveupdate/kexec_handover.c β go read it, iykyk π
and the whole friend group π:
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_preserve_vmalloc(9)kho_unpreserve_vmalloc(9)kho_restore_vmalloc(9)kho_alloc_preserve(9)kho_restore_free(9)is_kho_boot(9)kho_retrieve_subtree(9)
okay that's the whole page bestie, go free some memory and slay π β¨
source sitch: ./kernel/liveupdate Β· dated October 2026 Β· mwah, love u, bye π
π¦ 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