dst_cache_set_ip4(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 operation
  • dst β€” the entry to be cached 🌟 the actual destination entry you're tucking away in there
  • saddr β€” 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:

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