kho_restore_pages(9)
β¨ kho_restore_pages(9) β¨
hey bestie π welcome to the Kernel API Manual, section 9 β this is the page for kho_restore_pages, and it's lowkey iconic for bringing pages back. no cap.
πΈ NAME πΈ
kho_restore_pages β restore list of contiguous order 0 pages. π«Ά
β¨ SYNOPSIS β¨
struct page * kho_restore_pages (phys_addr_t phys , unsigned long
nr_pages );
π ARGUMENTS π
physβ physical address of the first page. that's where the page crew starts, bestie π¦nr_pagesβ number of pages. count 'em and slay β¨
π DESCRIPTION π
okay so this function restores a contiguous list of order 0 pages that was preserved with kho_preserve_pages. it's giving "bring the preserved pages back to main character energy" π and yes, the order 0 and contiguous details are literally part of the vibe check.
π₯ RETURN π₯
the first page on success, NULL on failure. so if it works you get the first page back β iconic β and if not, NULL says hi π.
π¦ SEE ALSO π¦
the kernel file to peek at is ./kernel/liveupdate/kexec_handover.c. and these related pages are all in the group chat too:
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_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_unpreserve_free(9)kho_restore_free(9)is_kho_boot(9)kho_retrieve_subtree(9)
okay that's the whole page π
source/version is ./kernel/liveupdate, date October 2026, and the manual page is kho_restore_pages(9) β bye bestie, go restore those pages fr fr π«Άβ¨
π¦ 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