kho_preserve_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kho_preserve_pages(9) β€” like, the Kernel API Manual entry you actually wanna read πŸŽ€

okay so bestie, welcome to the Kernel API Manual page for kho_preserve_pages. this one's short and sweet and honestly kinda iconic for it ✨


🌸 NAME 🌸

kho_preserve_pages β€” preserve contiguous pages across kexec πŸ¦‹


✨ SYNOPSIS ✨

int kho_preserve_pages (struct page *page , unsigned long nr_pages );

πŸ’œ ARGUMENTS πŸ’œ

  • page β€” the first page in the list. yeah, the first one, she's the main character here πŸ‘‘
  • nr_pages β€” how many pages. the count. the vibe check number 🌈

πŸ”₯ DESCRIPTION πŸ”₯

so what she does: she preserves a contiguous list of order 0 pages πŸ’… like, a whole lil lineup of them, all order 0, all together.

⚠️ listen up though β€” you must restore them using kho_restore_pages to make sure the pages actually come back properly as order 0. no shortcuts, no cap πŸ™ˆ

⭐ RETURN ⭐

0 on success, error code on failure. that's it, that's the whole personality 😭


🫢 SEE ALSO 🫢

the kernel file in question, aka where the magic lives:

./kernel/liveupdate/kexec_handover.c

and the whole friend group πŸ’–:


mwah πŸ’‹ that's the page! brought to you from ./kernel/liveupdate, dated October 2026 β€” go read the others too, iykyk 🌟

πŸ“¦ where this page comes from