dfs_cache_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dfs_cache_find(9) β€” bestie's guide to the Kernel API Manual

okay so this one lives in the kernel API manual and it's literally called dfs_cache_find β€” the whole vibe is "find a DFS cache entry" ✨ she's a lookup girlie and she ate, no cap.


🌸 SYNOPSIS 🌸

int dfs_cache_find (const unsigned int xid , struct cifs_ses *ses ,
const struct nls_table *cp , int remap , const char *path ,
struct dfs_info3_param *ref , struct dfs_cache_tgt_list *tgt_list );

like… seven whole parameters, she's high maintenance but she delivers πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • xid β€” the syscall xid. it's giving ✨identifier energy✨
  • ses β€” the smb session you're issuing the request on 🫢
  • cp β€” codepage. yes bestie, a codepage.
  • remap β€” the path character remapping type πŸ”₯
  • path β€” the path to look up in the DFS referral cache. this is the main character fr.
  • ref β€” when non-NULL, store a single DFS referral result in it. when NULL? she minds her business πŸ™ˆ
  • tgt_list β€” when non-NULL, store the complete DFS target list in it. again, non-NULL only, iykyk πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea πŸ“ β€” if it doesn't find the cache entry, then it will get a DFS referral for path and create a new entry. fresh out the oven, brand new, iconic.

in case the cache entry exists but is expired πŸ‘‘ (we've all been there), it will get a DFS referral for path and then update the respective cache entry. glow-up, essentially.

these parameters are passed down to the get_dfs_refer call if it needs to be issued:

and then β€” the moment we've all been waiting for β€” return zero if the target was found, otherwise non-zero. that's it, that's the return value, periodt. ⭐

ngl, the "these parameters are passed down to the get_dfs_refer call" line stands on its own in the original, so we're leaving it exactly where it is β€” no edits, no adding, we don't invent lore here πŸ™…β€β™€οΈ

πŸ’– SEE ALSO πŸ’–

the whole friend group 🫢 honestly obsessed.


mwah πŸ’‹ this princess came from ./fs/smb/client, dated October 2026, and she's filed under dfs_cache_find(9) β€” catch her in the Kernel API Manual, k bye πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from