nfsd_file_put_local(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the nfsd_file of 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:

  1. first, she saves the associated net so she can return it to the caller β€” literally holding onto it for you 🫢
  2. 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:


ngl if you're reading this at 3am wondering why your nfsd_file refs are a mess, this is your sign to go read nfsd_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