kho_restore_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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