eth_hw_addr_inherit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– eth_hw_addr_inherit(9) β€” Kernel API Manual πŸ’–

okay so bestie. you opened a page from the Kernel API Manual and it is literally called eth_hw_addr_inherit(9). yes the (9) means kernel API β€” iykyk. this one is short, it's sweet, and it is giving "small function, big responsibility" energy. let's get into it 🫢


✨ NAME ✨

eth_hw_addr_inherit β€” copy dev_addr from another net_device, no cap πŸŽ€


🌸 SYNOPSIS 🌸

void eth_hw_addr_inherit (struct net_device *dst , struct net_device *src );

literally just two pointers and it returns nothing. void. iconic minimalism πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dst β€” pointer to the net_device you're copying dev_addr to. the destination. the one receiving the glow-up ✨
  • src β€” pointer to the net_device you're copying dev_addr from. the source. the one sharing its address πŸ’–

two structs, one address, zero drama. periodt.


πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the whole vibe: you take the Ethernet address from one net_device and you copy it over to another one. copy-paste, but for hardware addresses πŸ’«

and bestie, it's not just the address β€” it also brings along the address attributes, aka addr_assign_type. so the address and its little "where did I come from" tag move together, as a unit. the way that they're a package deal 😭🫢

that's genuinely it. that's the whole function. short queen behavior, and honestly? we love a function that knows exactly what it does and doesn't over-explain itself 🌈


πŸ’œ SEE ALSO πŸ’œ

okay this is the part where the page goes full main character and name-drops the entire friend group. the kernel file here is ./include/linux/etherdevice.h, and every single one of these is a (9) page bestie:

like, that's twenty-nine pages. whole squad, fully assembled, all living in etherdevice.h. go read them if you want the full lore 🧚⭐


πŸ’€ real talk: eth_hw_addr_inherit doesn't have a return value, so don't go checking one. void means void, bestie. no notes.

and that's the page!! source file ./include/linux, dated October 2026, from the Kernel API Manual. mwah, go inherit some addresses responsibly πŸ’…πŸŽ€πŸ“

πŸ“¦ where this page comes from