copy_last_highmem_page(9)
π 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:
get_image_page(9)free_image_page(9)alloc_rtree_node(9)free_mem_extents(9)create_mem_extents(9)memory_bm_next_pfn(9)mark_nosave_pages(9)create_basic_memory_bitmaps(9)free_basic_memory_bitmaps(9)snapshot_additional_pages(9)count_free_highmem_pages(9)count_highmem_pages(9)count_data_pages(9)swsusp_free(9)preallocate_image_pages(9)free_unnecessary_pages(9)minimum_image_size(9)hibernate_preallocate_memory(9)pack_pfns(9)snapshot_read_next(9)unpack_orig_pfns(9)count_highmem_image_pages(9)prepare_highmem_image(9)prepare_image(9)snapshot_write_next(9)restore_highmem(9)
go read them all i'm literally begging π
lowkey reminder:bufferandlast_highmem_pageare doing the heavy lifting here β if you're calling this, make sure the caller ofsnapshot_write_nextactually put something inbufferfirst, 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms