nfsd_file_put_local(9)
π nfsd_file_put_local β the kernel API manual, bestie edition β¨
okay so real talk, this is nfsd_file_put_local(9) from the Kernel API Manual, and she is lowkey iconic. sit down, grab a strawberry π, let's get into it.
πΈ NAME πΈ
nfsd_file_put_local β put nfsd_file reference and arm nfsd_net_put in caller π
like, she drops a reference and leaves a little gift for whoever called her. multitasking queen behavior, honestly π
β¨ SYNOPSIS β¨
struct net * nfsd_file_put_local (struct nfsd_file __rcu **pnf );
no cap, that's the whole vibe. struct net * comes back out, pnf goes in. π«
π ARGUMENTS π
pnfβ thenfsd_fileof which to put the reference. bestie, this is the one you're letting go of π¦
π DESCRIPTION π
the way this function works is genuinely so clean, bestie:
- first, she saves the associated net so she can return it to the caller β literally holding onto it for you π«Ά
- then, she puts the reference of the
nfsd_file.
that's it. that's the whole function. save the net, drop the ref. two steps, zero drama, main character energy from start to finish πβ¨
think of it like: she's not just saying bye to the nfsd_file, she's also handing you the keys to the net on her way out. iconic. periodt. π₯
π SEE ALSO π
Kernel file ./fs/nfsd/filecache.c β the source, the origin, the mothership π§
and the whole squad, fr fr, go read all of them:
nfsd_file_check_write_error(9)nfsd_file_put(9)nfsd_file_file(9)nfsd_file_dispose_list_delayed(9)nfsd_file_net_dispose(9)nfsd_file_lru_cb(9)nfsd_file_cond_queue(9)nfsd_file_queue_for_close(9)nfsd_file_close_inode(9)nfsd_file_close_inode_sync(9)nfsd_file_close_export(9)__nfsd_file_cache_purge(9)nfsd_file_cache_purge(9)nfsd_file_is_cached(9)nfsd_file_acquire_gc(9)nfsd_file_acquire(9)nfsd_file_acquire_local(9)nfsd_file_acquire_opened(9)nfsd_file_acquire_dir(9)nfsd_fsnotify_recalc_mask(9)
ngl if you're reading this at 3am wondering why yournfsd_filerefs are a mess, this is your sign to go readnfsd_file_put(9)too. iykyk π
and that's a wrap, bestie!! π this little page lives in ./fs/nfsd, she's dated October 2026, and she answers to the name nfsd_file_put_local(9) β say it back π
π mwah, go touch some filecache code β¨
π¦ 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