_cifsFileInfo_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay bestie, welcome to the _cifsFileInfo_put(9) page. we are literally in the Kernel API Manual and this function is here to release a reference of file priv data. no cap, that's the whole assignment. 🫢


🌸 NAME 🌸

_cifsFileInfo_put β€” release a reference of file priv data. that's it, that's the vibe. πŸ’…


✨ SYNOPSIS ✨

       void _cifsFileInfo_put (struct cifsFileInfo *cifs_file , bool
       wait_oplock_handler , bool offload );

πŸŽ€ ARGUMENTS πŸŽ€

  • cifs_file β€” cifs/smb3 specific info (eg refcounts) for an open file. πŸ¦‹
  • wait_oplock_handler β€” must be false if called from oplock_break_handler. like, genuinely must be false, bestie. 🚨
  • offload β€” not offloaded on close and oplock breaks. πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

okay so real talk: this may involve closing the filehandle cifs_file out on the server. πŸ“‘

🚨 Must be called without holding tcon->open_file_lock, cinode->open_file_lock and cifs_file->file_info_lock. like, do not be holding those locks. periodt. πŸ’…

If wait_for_oplock_handler is true and we are releasing the last reference, wait for any running oplock break handler of the file and cancel any pending one. ⏳ iconic behavior, honestly.


🌈 SEE ALSO 🌈


mwah πŸ’‹ β€” source/version: ./fs/smb/client; date: October 2026. πŸŽ€

πŸ“¦ where this page comes from