ENUM P9_CACHE_BITS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is enum p9_cache_bits β€” it's the enum that holds all the possible values of ->cache πŸ’… that's it, that's the whole job, and honestly? iconic.

This page lives in the Kernel API Manual (section 9, the kernel-API girlies) and it's giving "small but mighty" energy. πŸŽ€


🌸 SYNOPSIS 🌸

bestie, here's the whole thing, verbatim, no cap:

enum p9_cache_bits {
    CACHE_NONE ,
    CACHE_FILE ,
    CACHE_META ,
    CACHE_WRITEBACK ,
    CACHE_LOOSE ,
    CACHE_FSCACHE

};

like yes, there's a lil trailing space before those commas and an extra blank line before the closing brace β€” that's just how she is, we don't judge. 🫢


πŸ¦‹ Constants πŸ¦‹

okay so each of these is one flavor of ->cache, and they are NOT the same vibe, so let's go one by one:

  • CACHE_NONE β€” caches disabled. nothing cached. we're living in the moment, no memories stored. πŸ’€
  • CACHE_FILE β€” file caching, and the window for it is literally open to close. like the cache has a whole lifespan, periodt.
  • CACHE_META β€” meta-data and directory caching ✨ the receipts and the folder structure get remembered.
  • CACHE_WRITEBACK β€” write-back caching for files. writes get to chill before actually landing. highkey a whole strategy.
  • CACHE_LOOSE β€” don't check cache consistency πŸ™ˆ we are trusting, we are relaxed, we are not doing the vibe check.
  • CACHE_FSCACHE β€” local persistent caches πŸ‘‘ the cache that stays, the main character that remembers you after you leave.

πŸ’œ SEE ALSO πŸ’œ

go read these next, i'm obsessed with all of them:


okay that's the whole page, you ate that πŸ’– this one's from ./fs/9p, dated October 2026 β€” so like, mark your calendar bestie, and go forth and cache responsibly βœ¨πŸ¦‹πŸŒˆ

πŸ“¦ where this page comes from