eth_header_cache_update(9)
π eth_header_cache_update(9)
ok so this is a page straight outta the Kernel API Manual β yes, that Kernel API Manual β and it's about one (1) tiny little function that keeps your network cache from lying to you. let's go β¨
πΈ NAME πΈ
eth_header_cache_update β update cache entry π
like, the function's whole job is updating the cache entry. that's it. that's the tweet.
π¦ SYNOPSIS π¦
void eth_header_cache_update (struct hh_cache *hh , const struct
net_device *dev , const unsigned char *haddr );
three args, returns void, no drama. she takes her params and she leaves. π
β¨ ARGUMENTS β¨
hhβ the destination cache entry, aka the thing getting updated. she's the destination, bestie πdevβ the network device. the hardware baddie in question π«Άhaddrβ the new hardware address. fresh off the press, brand new, no cap β
π₯ DESCRIPTION π₯
ok so here's the vibe β this one gets called by the Address Resolution module to notify changes in address. that's literally it, that's the whole description, and honestly? iconic. minimal. main character energy.
so when an address changes, AR is like "hey bestie, heads up" and eth_header_cache_update is the one making sure the cache entry actually knows about it. no stale vibes allowed in this house π«π
lowkey important: if you're poking around here, remember this is called by the Address Resolution module β it's a notification path, not something you just summon for fun π
π SEE ALSO π
this is the friend group, fr fr β the whole squad lives over in the kernel file ./net/ethernet/eth.c:
eth_header(9)eth_get_headlen(9)eth_type_trans(9)eth_header_cache(9)eth_header_parse_protocol(9)eth_prepare_mac_addr_change(9)eth_commit_mac_addr_change(9)eth_mac_addr(9)ether_setup(9)alloc_etherdev_mqs(9)platform_get_ethdev_address(9)nvmem_get_mac_address(9)fwnode_get_mac_address(9)device_get_mac_address(9)device_get_ethdev_address(9)
aaaand that's the page, bestie π this lil gem comes to you from ./net/ethernet and it's stamped October 2026 β go forth and keep those caches fresh πππΈ
π¦ 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