kmap_flush_unused(9)
π¦ kmap_flush_unused β bestie, it's time to clean house π§Ήβ¨
Okay so this is a page from the Kernel API Manual, and honestly it's one of those tiny little functions that does exactly what the name says and then dips π . No drama, no arguments, no return value β just pure "get the stray mappings out of here" energy. Let's get into it π«Ά
πΈ NAME πΈ
kmap_flush_unused β flush all unused kmap mappings, like, the whole point is to remove stray mappings π₯
Think of it as the group-chat admin doing a purge of the inactive members. Not personal, just necessary π
β¨ SYNOPSIS β¨
void kmap_flush_unused (void );
That's it. That's the whole call. No parameters to remember, no return value to check β iconic, low-maintenance, zero-notes behaviour π
π ARGUMENTS π
voidβ no arguments. Not "optional", not "depends on the config" β genuinely, truly, no arguments π
The way this function asks for absolutely nothing from you and still handles its business? Main character energy fr fr π
π SEE ALSO π
The kernel file lives right here: ./include/linux/highmem.h β that's your home base for all of these, go say hi π
kmap(9)kunmap(9)kmap_to_page(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, the whole highmem friend group is here β go read them all, iykyk ππ
β Reminder bestie: unused mappings don't flush themselves. Stray stuff lingering = no cap, that's the whole reason this exists π«Ά
Okay that's the whole page, mwah π β brought to you by the source tree at ./include/linux, dated October 2026, from your favourite manual, the Kernel API Manual. Slay, bye πβ¨
π¦ 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