ENUM P9_CACHE_SHORTCUTS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is enum p9_cache_shortcuts from the Kernel API Manual β€” it's literally the enum for human readable cache preferences. no cap, that's the whole vibe: cute lil named constants so you don't have to remember mystery numbers. πŸ’…


🌸 SYNOPSIS 🌸

here's the enum exactly as it is, character for character, don't @ me:

enum p9_cache_shortcuts {
    CACHE_SC_NONE ,
    CACHE_SC_READAHEAD ,
    CACHE_SC_MMAP ,
    CACHE_SC_LOOSE ,
    CACHE_SC_FSCACHE

};

πŸ’– Constants πŸ’–

  • CACHE_SC_NONE β€” disable all caches. like, every single one. bye πŸ‘‹
  • CACHE_SC_READAHEAD β€” only provide caching for readahead. that's it, that's the whole job.
  • CACHE_SC_MMAP β€” provide caching to enable mmap. iconic behavior honestly 🫢
  • CACHE_SC_LOOSE β€” non-coherent caching for files and meta data. lowkey chaotic but valid ✨
  • CACHE_SC_FSCACHE β€” persistent non-coherent caching for files and meta-data. main character energy fr fr πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ this lil page lives at ./fs/9p and it's dated October 2026 β€” see u next time, bestie! 🫢✨

πŸ“¦ where this page comes from