kunmap(9)
π kunmap β kernel API manual, but make it make sense π
okay so bestie, welcome to kunmap(9) β straight out of the Kernel API Manual, and honestly? she's a supporting character who does her job flawlessly and never asks for credit. we stan a humble icon π«Ά
β¨ NAME β¨
kunmap β the girl whose whole job is unmapping the virtual address that was mapped by kmap(). that's it. that's the gig. reverse uno card energy ππ
πΈ SYNOPSIS πΈ
void kunmap (const struct page *page );
like. she takes one argument. void return. no drama, no cap. π
π ARGUMENTS π
pageβ Pointer to the page which was mapped bykmap. that's the exact samestruct page *you handed tokmapearlier, bestie. don't get cute and pass a different one π
π¦ DESCRIPTION π¦
so the tea is: kunmap is the counterpart to kmap. kmap maps, kunmap unmaps. they're a matched set, a duo, the main character and her ride-or-die. π
and here's the part that lowkey slays: she's a NOOP (that's "no operation", for the uninitiated π) when CONFIG_HIGHMEM=n. also a NOOP for mappings of pages in the low memory area. so sometimes she literally does nothing and that's correct behaviour, not laziness. honestly? queen. she knows when not to act. πβ¨
fr fr though β this is not a "maybe it did something" situation. it is defined to be a no-op in those cases. no guessing, no vibes-based kernel debugging. π§
π₯ SEE ALSO π₯
Kernel file ./include/linux/highmem.h β go read her whole friend group, they're all icons:
kmap(9)kmap_to_page(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)
like, that's a whole squad. group chat is poppin' off. ππ
okay that's the whole page, bestie β this cutie lives in ./include/linux, dated October 2026, and that's the vibe check complete. go unmap something responsibly. 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