kho_unpreserve_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 by kho_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 πŸ’œ:


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