close_cached_dir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 with cfid_list_lock held. If you’re already holding it, use close_cached_dir_locked called instead. Periodt. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


Signed off from the ./fs/smb/client source/version, dated October 2026 β€” this was close_cached_dir(9), mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from