close_cached_dir(9)
π close_cached_dir(9) β drop a reference of a cached dir π
Okay so bestie, this is a Kernel API Manual page for close_cached_dir(9), and itβs literally about dropping a reference of a cached dir. Slay. β¨
πΈ NAME πΈ
close_cached_dir β drop a reference of a cached dir π
π¦ SYNOPSIS π¦
void close_cached_dir (struct cached_fid *cfid );
π ARGUMENTS π
cfidβ cached dir π
β¨ DESCRIPTION β¨
So hereβs the vibe: the release function is gonna be called with cfid_list_lock held, and thatβs what removes the cached dirs from the list before any other thread can take another cfid ref. π
β οΈ Important, no cap: this must not be called withcfid_list_lockheld. If youβre already holding it, useclose_cached_dir_lockedcalled instead. Periodt. π
π₯ SEE ALSO π₯
- Kernel file
./fs/smb/client/cached_dir.cπ close_cached_dir_locked(9)π«Ά
Signed off from the ./fs/smb/client source/version, dated October 2026 β this was close_cached_dir(9), mwah ππ
π¦ 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