get_dump_page(9)
π get_dump_page β the kernel API manual, but make it make sense π
okay so bestie, welcome to the get_dump_page(9) page π
this one lives in the Kernel API Manual, section 9 β we're in kernel-dev territory now, no cap.
β¨ NAME β¨
get_dump_page β pin a user page in memory while you're writing it out to a core dump π«Ά
πΈ SYNOPSIS πΈ
struct page * get_dump_page (unsigned long addr , int *locked );
π¦ ARGUMENTS π¦
addrβ the user address. literally the address, that's the whole vibe πlockedβ a pointer to anintthat says whether the mmap sem is held π
π DESCRIPTION π
So this one returns a struct page pointer for a user page that's pinned for the dump β and when you're done with it, you free it afterwards with put_page π§
It returns NULL on any kind of failure β and when that happens you must insert a hole into the corefile, because you gotta preserve alignment with its headers, fr fr. It also returns NULL wherever the ZERO_PAGE has been found, or an anonymous pte_none β which is actually a slay, because that lets you leave a hole in the corefile and save disk space π
ngl it's called withoutmmap_lockβ it takes and releases themmap_lockby itself, main character energy, it handles its own business π
π SEE ALSO π
All these icons live in the kernel file ./mm/gup.c π₯
try_grab_folio(9)unpin_user_page(9)unpin_folio(9)folio_add_pin(9)unpin_user_pages_dirty_lock(9)unpin_user_page_range_dirty_lock(9)unpin_user_pages(9)unpin_user_folio(9)unpin_folios(9)try_grab_folio_fast(9)follow_page_mask(9)__get_user_pages(9)fixup_user_fault(9)populate_vma_page_range(9)fault_in_writeable(9)fault_in_subpage_writeable(9)fault_in_readable(9)get_user_pages_remote(9)get_user_pages(9)get_user_pages_fast_only(9)get_user_pages_fast(9)pin_user_pages_fast(9)pin_user_pages_remote(9)pin_user_pages(9)memfd_pin_folios(9)folio_add_pins(9)
and that's the whole page, bestie, you ate that π this cutie came out of ./mm, dated October 2026, and it's from the Kernel API Manual, section 9 β that's get_dump_page(9) for the group chat π 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