nfsd_file_acquire(9)
π 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 executedfhpβ the NFS filehandle of the file to be openedmay_flagsβNFSD_MAY_settings for the filepnfβ OUT: new or foundstruct nfsd_fileobject
π¦ 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βpnfpoints to annfsd_filewith its reference count boosted β¨- On error, an
nfsstatvalue in network byte order is returned π
π SEE ALSO π
Kernel file: ./fs/nfsd/filecache.c β and these are the related pages, bestie:
nfsd_file_check_write_error(9)nfsd_file_put(9)nfsd_file_put_local(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_local(9)nfsd_file_acquire_opened(9)nfsd_file_acquire_dir(9)nfsd_fsnotify_recalc_mask(9)
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
- 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