dst_cache_set_ip4(9)
π dst_cache_set_ip4 β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual page for dst_cache_set_ip4(9) β yes the (9) is the section, it's giving kernel-internals energy and we're here for it β¨
πΈ NAME πΈ
dst_cache_set_ip4 β store the ipv4 dst into the cache. literally that's the whole job. she's a setter, she sets π
β¨ SYNOPSIS β¨
void dst_cache_set_ip4 (struct dst_cache *dst_cache , struct dst_entry
*dst , __be32 saddr );
returns void btw, so likeβ¦ nothing comes back. no little gift, no return code. iconic of her ngl π«Ά
π ARGUMENTS π
dst_cacheβ the cache π this is the thing getting written into, the main character of the whole operationdstβ the entry to be cached π the actual destination entry you're tucking away in theresaddrβ the source address to be stored inside the cache π¦ it's a__be32, so mind your endianness iykyk
π₯ DESCRIPTION π₯
local BH must be disabled.
and that's it, that's the whole description π no cap, the manpage is that brief. but like β local BH must be disabled is not a soft suggestion bestie, it's a requirement, so handle that before you call her or it's not it π
β οΈ fr fr: local BH must be disabled. don't skip the prerequisite, it's the entire DESCRIPTION section for a reason π
π SEE ALSO π
Kernel file ./include/net/dst_cache.h β plus the whole friend group:
dst_cache_get(9)dst_cache_get_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)
like, she's got a whole roster π go read them all, they're a package deal π
and that's the page, bestie π§ this was brought to you straight outta ./include/net, dated October 2026 β stay caffeinated, keep your BH disabled, and slay those caches βπ
π¦ 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