__nfsd_file_cache_purge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __nfsd_file_cache_purge(9) πŸ’…

okay so this page is from the Kernel API Manual, and we're talking about __nfsd_file_cache_purge β€” yes bestie, we're doing kernel cache cleanup and it's lowkey iconic 🫢

✨ NAME ✨

__nfsd_file_cache_purge β€” clean out the cache for shutdown πŸ’–

🌸 SYNOPSIS 🌸

void __nfsd_file_cache_purge (struct net *net );

πŸŽ€ ARGUMENTS πŸŽ€

  • net β€” the net-namespace whose cache we're shutting down, and yeah it may be NULL πŸŒ€

πŸ’– DESCRIPTION πŸ’–

okay so __nfsd_file_cache_purge literally walks the nfsd_file cache and closes out any entries that match net ✨ if net is NULL, then it closes out everything β€” the whole cache, no cap πŸ’€

this gets called when an nfsd instance is being shut down, and when the exports table is flushed πŸ‘‘ so it's very much the cleanup main character.

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./fs/nfsd/filecache.c, and here are all the related besties:


cute sign-off tea β˜•: this page came from ./fs/nfsd, dated October 2026, and the manual entry is __nfsd_file_cache_purge(9) β€” periodt πŸ’…

πŸ“¦ where this page comes from