dfs_cache_no...date_tgthint(9)
π dfs_cache_no...date_tgthint(9) β like, the Kernel API Manual, bestie π
okay so real talk, the manual name got squished (dfs_cache_no...date_tgthint(9), iconic abbreviation energy, they really said "we're not typing all that") but the actual function is dfs_cache_noreq_update_tgthint, and yes it's a mouthful, and yes we're gonna get through it together π«Ά
β¨ NAME β¨
dfs_cache_noreq_update_tgthint β updates the target hint of a DFS cache entry, and the whole point is that it does it without sending any requests to the currently connected server. no network calls, no "hey server u up", nothing. it just vibes with what it already has π
πΈ SYNOPSIS πΈ
void dfs_cache_noreq_update_tgthint (const char *path , const struct
dfs_cache_tgt_iterator *it );
π¦ ARGUMENTS π¦
pathβ the canonical DFS path you're looking up in the DFS referral cache. like, the actual address of the thing, no shortcuts, no "you know the one" πitβ a target iterator, and it's the one carrying the target hint that this call is gonna write into the cache entry. it's giving "delivery girl with the update" π¦β¨
π NOTE π
read this part twice, bestie, it's the main character caveat:
- if the cache entry is expired, this function will not update it. nope. expired is expired π«
- if
pathhasn't been found at all, it will not create a new cache entry. no entry, no entry-creation, not today π - it heavily relies on an existing cache entry β like, this function is nothing without an entry to lean on. codependent queen ππ
π₯ DESCRIPTION π₯
it returns zero if the target hint got updated successfully. otherwise it returns non-zero β so zero means slay, anything else means something went sideways. periodt π
π SEE ALSO π
- the kernel file
./fs/smb/client/dfs_cache.c(the source, the original text, the mothership π) dfs_cache_canonical_path(9)dfs_cache_init(9)dfs_cache_destroy(9)dfs_cache_find(9)dfs_cache_noreq_find(9)dfs_cache_get_tgt_referral(9)dfs_cache_get_tgt_share(9)dfs_cache_remount_fs(9)
okay that's the whole thing, go forth and update those target hints π§π
little sign-off from the source files: this one lives in./fs/smb/client, dated October 2026, and it's filed underdfs_cache_no...date_tgthint(9)β mwah, bye bestie πΈπ
π¦ 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