fscache_acquire_cache(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fscache_acquire_cache(9) πŸ’–

okay bestie, this is straight from the Kernel API Manual and it’s literally about acquiring a cache-level cookie. slay. πŸͺ✨


✨ NAME ✨

fscache_acquire_cache β€” Acquire a cache-level cookie.


🌸 SYNOPSIS 🌸

struct fscache_cache * fscache_acquire_cache (const char *name );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the name of the cache. that’s the whole vibe, no cap.

πŸ¦‹ DESCRIPTION πŸ¦‹

The main character move here is: get a cookie to represent an actual cache. πŸ’…

If a name is given and there is a nameless cache record available, this will acquire that record and set its name, directing all the volumes using it to this cache. periodt. πŸ”₯

The cache will be switched over to the preparing state if it’s not currently in use. otherwise -EBUSY will be returned. 😭

heads up bestie: if it is currently in use, you get -EBUSY instead of the switch. no cap.

🌈 SEE ALSO 🌈

Kernel file ./fs/netfs/fscache_cache.c πŸ’–


byeee 🫢 this iconic page lives at ./fs/netfs, and it’s dated October 2026 β€” fscache_acquire_cache(9) out. πŸ’œβœ¨

πŸ“¦ where this page comes from