mark_nosave_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 mark_nosave_pages(9) 🌸

okay so bestie, welcome to the Kernel API Manual β€” yes we're doing kernel internals today, and yes you're gonna slay it πŸ’… this one lives in the hibernate/suspend girlie corner of the kernel and it's honestly so iconic once you get it.


✨ NAME ✨

mark_nosave_pages β€” literally marks the pages that should not be saved πŸš«πŸ’Ύ no cap, that's the whole vibe.


πŸ¦‹ SYNOPSIS πŸ¦‹

void mark_nosave_pages (struct memory_bitmap *bm );

that's it. one function, one argument, zero drama ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • bm β€” the memory bitmap πŸ‘‘ it's a struct memory_bitmap, and it's the thing getting its bits set. main character energy fr.

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea πŸ“: this function sets the bits in bm that correspond to the page frames whose contents should not be saved. that's the whole job. it doesn't save anything, it doesn't free anything β€” it just goes through and flips the bits for the pages that are getting left behind when the snapshot happens πŸ™ˆ

think of it as the "do not pack this" sticker on the boxes πŸ“¦βœ¨ except the boxes are page frames and the stickers are bits. iykyk.


🌈 SEE ALSO 🌈

bestie there are so many friends in this family, buckle up 🫢 all of these hang out in the kernel file ./kernel/power/snapshot.c:

go read them if you're nosy (respectfully) πŸ‘€ they're all part of the same hibernate-and-snapshot friend group.

that's the whole page, bestie β€” you ate that πŸ’…βœ¨ this cutie is brought to you by ./kernel/power, dated October 2026, and it's filed under mark_nosave_pages(9) in the Kernel API Manual πŸŽ€πŸ¦‹ see you in the next one, mwah πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from