copy_last_highmem_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– copy_last_highmem_page(9) πŸ’–

okay so first of all, welcome to the Kernel API Manual bestie, this is the copy_last_highmem_page(9) page and it is exactly what it sounds like 🫢


✨ NAME ✨

copy_last_highmem_page β€” copies the most recent highmem image page. that's it. that's the whole job. no cap πŸ’…


✨ SYNOPSIS ✨

void copy_last_highmem_page (void );

✨ ARGUMENTS ✨

  • void β€” literally no arguments. zero. none. she takes nothing and she gives… well, she gives a copy. πŸŽ€

✨ DESCRIPTION ✨

so here's the vibe 🌸: this function copies the contents of a highmem image from buffer β€” that's where the caller of snapshot_write_next stashed them β€” over to the right location, the one represented by last_highmem_page .

that's the whole plot. buffer in, last_highmem_page out. iconic, minimal, no notes πŸ‘‘


✨ SEE ALSO ✨

the whole friend group, fr fr πŸ’œ β€” all of these live in the kernel file ./kernel/power/snapshot.c:

go read them all i'm literally begging πŸ™ˆ


lowkey reminder: buffer and last_highmem_page are doing the heavy lifting here β€” if you're calling this, make sure the caller of snapshot_write_next actually put something in buffer first, bestie 😭

🌸 that's the page!! brought to you by ./kernel/power, October 2026, and the Kernel API Manual β€” slay safe out there, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from