dst_cache_get(9)
π dst_cache_get(9) β Kernel API Manual π
π NAME π
dst_cache_get β perform cache lookup. That's the whole gig, bestie, and honestly? Iconic. π
β¨ SYNOPSIS β¨
The signature is giving exactly this, no cap:
struct dst_entry * dst_cache_get (struct dst_cache *dst_cache );
πΈ ARGUMENTS πΈ
dst_cacheβ the cache. That's it. The one and only argument, and yes, it's literally the cache. π«Ά
π¦ DESCRIPTION π¦
Okay so here's the tea: if the caller needs the source address that's gonna be used when xmitting to the cached dst, that's when it should use dst_cache_get_ip4. Simple as that. β¨
π¨ Caveat, bestie: local BH must be disabled. This is not a vibe-check situation β it's literally required. Periodt. π
π SEE ALSO π
Kernel file ./include/net/dst_cache.h β that's the home base, iykyk. Then go say hi to the whole squad:
dst_cache_get_ip4(9)dst_cache_set_ip4(9)dst_cache_set_ip6(9)dst_cache_get_ip6(9)dst_cache_reset(9)dst_cache_reset_now(9)dst_cache_init(9)dst_cache_destroy(9)
mwah π β source/version is ./include/net, the date is October 2026, and the page is dst_cache_get(9). 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