nfsd_reply_cache_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfsd_reply_cache_count(9) πŸ’…

okay so bestie, this page is straight out of the Kernel API Manual, and it’s serving the count_objects method for the DRC shrinker. no cap, that’s the whole vibe.

πŸŽ€ NAME πŸŽ€

nfsd_reply_cache_count β€” count_objects method for the DRC shrinker

✨ SYNOPSIS ✨

unsigned long nfsd_reply_cache_count (struct shrinker *shrink , struct
shrink_control *sc );

🫢 ARGUMENTS 🫢

  • shrink β€” our registered shrinker context, slay.
  • sc β€” garbage collection parameters.

🌸 DESCRIPTION 🌸

It returns the total number of entries in the duplicate reply cache. To keep things simple and quick, this is not the number of expired entries in the cache (ie, the number that would be removed by a call to nfsd_reply_cache_scan). So like, don’t @ it for not being the expired count β€” that’s literally a different function’s job.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/nfsd/nfscache.c β€” and go peek at nfsd_reply_cache_scan(9), nfsd_cache_csum(9), nfsd_cache_lookup(9), and nfsd_cache_update(9) too, iykyk.


cute sign-off time: this one comes from ./fs/nfsd, dated October 2026, and it’s nfsd_reply_cache_count(9). πŸ’–βœ¨ periodt.

πŸ“¦ where this page comes from