kmap_to_page(9)
π« kmap_to_page β ok so hear me out, bestie
Bestie. You've got a kmap'ed address and you need the actual page behind it. That's literally it. That's the whole function. kmap_to_page from the Kernel API Manual, page kmap_to_page(9), and she is short and sweet and does exactly one thing, which honestly? iconic.
πΈ SYNOPSIS πΈ
struct page * kmap_to_page (void *addr );
Like. That's the whole vibe. You hand her a pointer, she hands you back a struct page *. No drama, no cap. π
π ARGUMENTS π
addrβ the address you want to look up. That's the one. That's the address. Give her the address, she'll do the rest. π«Ά
β RETURN β
She returns the page that's mapped to addr. The page which is mapped to addr. Same sentence, two ways, because I want you to get it, bestie. π¦
β¨ SEE ALSO β¨
Okay this is the part where the manpage goes absolutely feral with the cross-references, so buckle up, we're listing all of them, no skipping, I promise:
kmap(9)kunmap(9)kmap_flush_unused(9)kmap_local_page(9)kmap_local_folio(9)kmap_atomic(9)clear_user_page(9)clear_user_pages(9)clear_user_highpage(9)clear_user_highpages(9)vma_alloc_zeroed_movable_folio(9)memcpy_from_folio(9)memcpy_to_folio(9)folio_zero_tail(9)folio_fill_tail(9)memcpy_from_file_folio(9)folio_zero_segments(9)folio_zero_segment(9)folio_zero_range(9)folio_release_kmap(9)
All twenty of them. Every single one. Go read them, they're all in the kernel file ./include/linux/highmem.h β that's the file, right there in the SEE ALSO, and honestly? highmem.h is carrying the whole highmem friend group on its back. π
Quick vibe check before you go: this page is only about kmap_to_page, and everything above is everything the manpage says about it. Nothing more, nothing less. Don't be out here inventing behaviour, bestie, that's not the flex you think it is. π
Okay and finally, the sign-off β the page lives under ./include/linux, it's stamped October 2026, it's kmap_to_page(9) from the Kernel API Manual, and no cap, that's the whole footer. Go get that page, bestie. You're gonna slay. πππΈ
π¦ 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