eth_hw_addr_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… eth_hw_addr_set β€” Kernel API Manual, but make it a group chat ✨

okay so bestie, welcome to the Kernel API Manual entry for eth_hw_addr_set, and honestly? she's a short one but she's iconic. no cap. πŸŽ€


🌸 NAME 🌸

eth_hw_addr_set β€” assign an Ethernet address to a net_device πŸ¦‹


✨ SYNOPSIS ✨

void eth_hw_addr_set (struct net_device *dev , const u8 *addr );

literally that's it. that's the whole vibe. πŸ’…


🫢 ARGUMENTS 🫢

  • dev β€” pointer to the net_device structure πŸ‘‘ this is the device getting a glow-up
  • addr β€” the address you're assigning πŸ“ the actual bytes going in

πŸ’– DESCRIPTION πŸ’–

So here's the tea: you hand her a net_device and an address, and she assigns that given address to the net_device.

But β€” and this is the part you cannot skip, bestie β€” addr_assign_type is not changed. πŸ”₯ She does not touch it. She does not update it. She does not even look at it. If you were expecting her to flip that field for you, she did not, and she will not, periodt. πŸ’€

ngl this is the whole personality of the function: it sets the address and only the address. everything else stays exactly where it was. iykyk πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./include/linux/etherdevice.h β€” go read her, she's lowkey the main character of Ethernet helpers 🧚 and while you're there, say hi to the whole friend group:

thirty-one besties and one header file, we love a supportive community πŸ’œ


okay that's the whole page, you ate that πŸ’…βœ¨ and one last cute lil sign-off: this iconic lil doc lives in ./include/linux and it's dated October 2026 β€” mark your calendars bestie, see you then πŸŒΈπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from