nfsd_file_acquire(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– nfsd_file_acquire(9) β€” Kernel API Manual πŸ’–

okay so bestie, this is the Kernel API Manual page for nfsd_file_acquire(9), and it's literally here to get you a struct nfsd_file with an open file. let's get into it 🫢✨

✨ NAME ✨

nfsd_file_acquire β€” get a struct nfsd_file with an open file

🌸 SYNOPSIS 🌸

__be32 nfsd_file_acquire (struct svc_rqst *rqstp , struct svc_fh *fhp ,
       unsigned int may_flags , struct nfsd_file **pnf );

πŸŽ€ ARGUMENTS πŸŽ€

  • rqstp β€” the RPC transaction being executed
  • fhp β€” the NFS filehandle of the file to be opened
  • may_flags β€” NFSD_MAY_ settings for the file
  • pnf β€” OUT: new or found struct nfsd_file object

πŸ¦‹ DESCRIPTION πŸ¦‹

The nfsd_file_object returned by this API is reference-counted but not garbage-collected β€” no cap, that's just how it is πŸ’…. The object is unhashed after the final nfsd_file_put.

Return values:

  • nfs_ok β€” pnf points to an nfsd_file with its reference count boosted ✨
  • On error, an nfsstat value in network byte order is returned 😭

πŸ’œ SEE ALSO πŸ’œ

Kernel file: ./fs/nfsd/filecache.c β€” and these are the related pages, bestie:


mwah πŸ’‹ β€” source/version is ./fs/nfsd, date is October 2026, and this iconic page is nfsd_file_acquire(9). bye bestie 🫢✨

πŸ“¦ where this page comes from