_cifsFileInfo_put(9)
π _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 befalseif called fromoplock_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 holdingtcon->open_file_lock,cinode->open_file_lockandcifs_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 π
Kernel file ./fs/smb/client/file.c cifsFileInfo_put(9)
mwah π β source/version: ./fs/smb/client; date: October 2026. π
π¦ 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