snapshot_additional_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– snapshot_additional_pages(9) πŸ’–

okay bestie, this page is straight out of the Kernel API Manual, and it’s all about one very specific estimate. Let’s get into it 🫢✨


✨ NAME ✨

snapshot_additional_pages β€” Estimate the number of extra pages needed.


🌸 SYNOPSIS 🌸

unsigned int snapshot_additional_pages (struct zone *zone );

πŸŽ€ ARGUMENTS πŸŽ€

  • zone β€” Memory zone to carry out the computation for.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so snapshot_additional_pages() estimates the number of additional pages needed for setting up a hibernation image data structures for zone β€” yes, that’s the whole vibe, and it is an estimate, not a promise. Usually, the returned value is greater than the exact number, so it’s giving β€œestimate, not exact” energy πŸ’…βœ¨.

no cap, that’s literally the function’s whole job here. 🫢


πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./kernel/power/snapshot.c, plus these iconic little references:


okay that’s the whole page, bestie πŸŽ€ β€” it comes from ./kernel/power, dated October 2026, and honestly? iconic. πŸ’…πŸŒŸ

πŸ“¦ where this page comes from