page_ext_get(9)
π NAME π
okay bestie, this is page_ext_get(9) from the Kernel API Manual β and it does exactly what it says on the tin: it grabs the extended information for a page. slay β¨
πΈ SYNOPSIS πΈ
struct page_ext * page_ext_get (const struct page *page );
that's the whole signature, no cap π
π ARGUMENTS π
pageβ the page we're interested in. literally the one you're curious about π«Ά
π¦ DESCRIPTION π¦
okay so here's the vibe: this guarantees that the page_ext stays valid until page_ext_put is called. that's the whole promise, and it's lowkey iconic π
β RETURN β
it returns NULL if there's no page_ext for this page. no page_ext? NULL. periodt π
π CONTEXT π
works in any context. but heads up bestie: the caller may not sleep until they've called page_ext_put. so no snoozing π
no sleeping before page_ext_put, fr fr ππ€
π SEE ALSO π
the whole squad:
- Kernel file
./mm/page_ext.c page_ext_lookup(9)page_ext_from_phys(9)page_ext_put(9)
later bestie π β this came from source/version ./mm, dated October 2026. 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