nfsd_stats_d...em_usage_sub(9)
π nfsd_stats_d...em_usage_sub(9) β the Kernel API Manual page, bestie edition β¨
okay so picture this: you're deep in the kernel docs, the manual is literally called Kernel API Manual, and you stumble on a page with a name so long it got truncated β nfsd_stats_d...em_usage_sub(9). iconic honestly. anyway, let's get into it π«Ά
β¨ NAME β¨
nfsd_stats_drc_mem_usage_sub β bestie, this one does exactly one thing: it subtracts memory used by a cache item. that's it. that's the whole gig. π
π¦ SYNOPSIS π¦
void nfsd_stats_drc_mem_usage_sub (struct nfsd_net *nn , s64 amount );
like, look at her. void return, two args, zero drama. she's giving functional. π
πΈ ARGUMENTS πΈ
nnβ the target network namespace, i.e. the vibe check of which namespace we're subtracting from. πamountβ the byte count. literally just how many bytes you're taking off the books. s64. no cap. π
π DESCRIPTION π
so here's the tea: this page says see nfsd_stats_drc_mem_usage_add for batching rationale. that's it, that's the description. the docs are being mysterious and honestly? main character energy of them. π
ngl, if you need the why behind the batching, you gotta go read nfsd_stats_drc_mem_usage_add β this page is not about to explain it twice. β¨
π SEE ALSO π
okay the friend group is large and I love them all:
- Kernel file
./fs/nfsd/stats.h nfsd_stats_rc_hits_inc(9)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)
π reminder: the name up top really is truncated like that. nfsd_stats_d...em_usage_sub(9) is not me being lazy, it's literally what the page is filed under. iykyk.
π§ a little sign-off π
this little love letter comes to you from ./fs/nfsd, dated October 2026, living its best life as page nfsd_stats_d...em_usage_sub(9) in the Kernel API Manual β go subtract those bytes responsibly, bestie, and slay πβπ₯
π¦ 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