kmap_flush_unused(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 🌈

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