dst_cache_reset(9)
π dst_cache_reset(9) β like, the Kernel API Manual bestie π
okay so bestie, welcome to dst_cache_reset(9), straight out of the Kernel API Manual. it's a tiny little function and honestly it's giving "small but mighty" β¨ let's get into it.
π¦ NAME π¦
dst_cache_reset β invalidate the cache contents πβ¨
πΈ SYNOPSIS πΈ
void dst_cache_reset (struct dst_cache *dst_cache );
no return value, no drama, just vibes π«Ά
π ARGUMENTS π
dst_cacheβ the cache π that's it, that's the whole argument. it's the cache you're resetting. iconic.
π₯ DESCRIPTION π₯
so here's the tea, bestie: this does not free the cached dst. and why? to avoid races and contentions π β like, it's being polite and not causing chaos, we love that for it.
instead, the dst will be freed on a later cache lookup. so it's not gone-gone, it's just... later-gone. lowkey a procrastinator, highkey valid π
ngl this is the important bit: no freeing happens here. if you were expecting an immediate free, that is not this function, periodt. the actual free is deferred to a future cache lookup, fr fr.
π§ SEE ALSO π§
Kernel file ./include/net/dst_cache.h β go read it, iykyk π
dst_cache_get(9)dst_cache_get_ip4(9)dst_cache_set_ip4(9)dst_cache_set_ip6(9)dst_cache_get_ip6(9)dst_cache_reset_now(9)dst_cache_init(9)dst_cache_destroy(9)
and that's the whole page, bestie π go forth and reset those caches responsibly π
mwah π β sourced from ./include/net, dated October 2026, and yes the page is literally dst_cache_reset(9), we stan a self-titled icon π
π¦ 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