nfsd_file_queue_for_close(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfsd_file_queue_for_close(9) β€” a Kernel API Manual moment ✨

okay so bestie, welcome to the Kernel API Manual, and buckle up because this one's a little baddie with a very specific job πŸŽ€


✨ NAME ✨

nfsd_file_queue_for_close β€” the girl whose whole personality is trying to close out any open nfsd_files for an inode 🫢


🌸 SYNOPSIS 🌸

void nfsd_file_queue_for_close(struct inode *inode, struct list_head *dispose);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • inode β€” the inode on which to close out nfsd_files. like, this is the one we're cleaning up after πŸ’…
  • dispose β€” the list on which to gather nfsd_files to close out. it's the lil handbasket we toss 'em in 🧺

πŸ’– DESCRIPTION πŸ’–

so. an nfsd_file represents a struct file that's being held open on behalf of nfsd. periodt. but here's the tea 😭 β€” an open file can block other activity (such as leases), or cause undesirable behavior (e.g. spurious silly-renames when reexporting NFS). not the vibe, honestly.

this function is intended to find open nfsd_files when this sort of conflicting access occurs, and then attempt to close those files out. she shows up, she handles it πŸ”₯

she populates the dispose list with entries that have already had their refcounts go to zero. and ngl, the actual free of an nfsd_file can be expensive πŸ’€ so we leave it up to the caller whether it wants to wait or not. main character choice, your call bestie 🫢


🌈 SEE ALSO 🌈

all the sisters, cousins and neighbors β€” keeping the whole friend group together, iykyk πŸ’œ


ok that's the whole page, no filler, no gatekeeping πŸ’€ go close some files bestie ⭐

sign-off szn πŸŽ€ β€” this cutie lives under ./fs/nfsd, dated October 2026, and that's the whole manual entry. slay, study it, love it πŸ’…πŸ’–

πŸ“¦ where this page comes from