nfsd_stats_rc_hits_inc(9)
π nfsd_stats_rc_hits_inc β from the Kernel API Manual β¨
okay bestie, so this one is a little kernel function from the Kernel API Manual and it's literally just here to count a vibe (the vibe being a duplicate reply cache hit, more on that in a sec). no cap, it's tiny. but she's important π
πΈ NAME πΈ
nfsd_stats_rc_hits_inc β Count a duplicate reply cache hit
like, she tallies up one (1) hit on the reply cache and minds her own business π
β¨ SYNOPSIS β¨
void nfsd_stats_rc_hits_inc (struct nfsd_net *nn );
that's it. that's the whole signature. she takes one argument, she returns nothing (void), she slays π
π¦ ARGUMENTS π¦
nnβ target network namespace. yep, that's the one and only thing she needs from you π«Ά
π₯ DESCRIPTION π₯
so here's the tea π: these reply cache counters get updated once per RPC. that's the rule, that's the whole system.
and the readers? they use percpu_counter_sum_positive, which is iconic of them, because it means the local batching does not affect read accuracy. so you can batch away locally, bestie, the readers are still gonna see the truth β¨ no cap, accuracy stays intact π―
ngl the whole point here is that counting is cheap and the reading is still correct β that's the flex ππ
π SEE ALSO π
- Kernel file
./fs/nfsd/stats.h nfsd_stats_rc_misses_inc(9)nfsd_stats_rc_nocache_inc(9)nfsd_stats_io_read_add(9)nfsd_stats_io_write_add(9)nfsd_stats_drc_mem_usage_add(9)nfsd_stats_drc_mem_usage_sub(9)
go read her friends, they're all main characters too ππ
and that's the page, bestie π§ from ./fs/nfsd, dated October 2026 β mwah, drink water, read your counters, periodt ππΈβ
π¦ 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