free_image_page(9)
πΈ NAME πΈ
okay so bestie, welcome to free_image_page(9) from the Kernel API Manual β the page for the little function that frees a page allocated for a hibernation image. yes, that's the vibe: free_image_page β Free a page allocated for hibernation image. π«Ά
β¨ SYNOPSIS β¨
void free_image_page (void *addr , int clear_nosave_free );
π ARGUMENTS π
addrβ the address of the page you're freeing, bestie. literally where it lives.clear_nosave_freeβ if this is set, clear thePageNosaveFreebit for the page. that's it, that's the job π
π¦ DESCRIPTION π¦
the page you're freeing should have been allocated by get_image_page β and yes, the page flags set by it are affected. no cap, that's the important bit. π§
π SEE ALSO π
the kernel file is ./kernel/power/snapshot.c, and these are the related pages/functions you should also check out (iykyk):
get_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)copy_last_highmem_page(9)prepare_image(9)snapshot_write_next(9)restore_highmem(9)
xoxo, your kernel bestie π β source/version: ./kernel/power; date: October 2026; manual page: free_image_page(9). slay and hydrate. πβ¨
π¦ 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