ENUM P9_CACHE_BITS(9)
β¨ 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:
- Kernel file
./fs/9p/v9fs.h enum p9_cache_shortcuts(9)struct v9fs_session_info(9)v9fs_get_inode_from_fid(9)v9fs_get_new_inode_from_fid(9)
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
- 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