folio_evictable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… folio_evictable β€” a Kernel API Manual moment (section 9, bestie)

okay so this is folio_evictable(9) from the Kernel API Manual and honestly? it's a little vibe check for your memory. keep up 🫢


✨ NAME ✨

folio_evictable β€” literally just testing whether a folio is evictable. that's it. that's the function πŸ’–


🌸 SYNOPSIS 🌸

bool folio_evictable (struct folio *folio );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio you're testing. the main character of this whole operation πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this does: it tests whether folio is evictable β€” meaning, should it go on the active/inactive lists, or does it belong on the unevictable list? it's giving sorting-hat energy fr fr πŸ’…

and the reasons a folio might not be evictable? there are exactly two and i need you to memorize them:

  1. the folio's mapping is marked unevictable 😭
  2. one of the pages in the folio is part of an mlocked VMA 🫢

that's the whole test. no cap.


🌈 SEE ALSO 🌈

the kernel file ./mm/internal.h and its little friend group πŸ‘‘:


ok that's the whole page bestie, go forth and evict (or don't) πŸ’–

and for the sign-off: this iconic little number lives in ./mm, version dated October 2026, and yes it's folio_evictable(9) β€” periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from