dfs_cache_get_tgt_referral(9)
π dfs_cache_get_tgt_referral(9) β Kernel API Manual core β¨
okay so bestie, welcome to the dfs_cache_get_tgt_referral(9) page β yes that's the whole name, it's long, it's giving "my parents gave me all the family names" energy, but we love her π this is a Kernel API Manual entry and honestly? iconic.
π NAME π
dfs_cache_get_tgt_referral β returns a DFS referral (@ref) from a given target iterator (@it). that's it, that's the whole job. she's focused, she's employed, she slays π«Ά
β¨ SYNOPSIS β¨
int dfs_cache_get_tgt_referral (const char *path , const struct
dfs_cache_tgt_iterator *it , struct dfs_info3_param *ref );
look at her. three params. no notes. π₯
π¦ ARGUMENTS π¦
pathβ the canonical DFS path to look up in the DFS referral cache. like, the address of the thing, but make it canonical πitβ your DFS target iterator. the little iterator bestie doing the walking πΆββοΈrefβ DFS referral pointer, and this is the one you're setting up with all the gathered info. it's the main character here, we're filling her in π
πΈ DESCRIPTION πΈ
so here's the tea: return zero if the DFS referral was set up correctly π otherwise you get a non-zero return, which is the kernel's way of saying "not today, babe" ππ
fr fr, zero = good vibes only, non-zero = something went sideways. no cap.
π SEE ALSO π
- Kernel file
./fs/smb/client/dfs_cache.c dfs_cache_canonical_path(9)dfs_cache_init(9)dfs_cache_destroy(9)dfs_cache_find(9)dfs_cache_noreq_find(9)dfs_cache_noreq_update_tgthint(9)dfs_cache_get_tgt_share(9)dfs_cache_remount_fs(9)
the whole friend group, honestly. go read them, iykyk π
and that's the page! shoutout to ./fs/smb/client for housing all of this, stamped October 2026, filed forever under dfs_cache_get_tgt_referral(9) β bestie is literally in the kernel manual, we stan a documented function π§βπ
π¦ 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