kmap_to_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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:

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