sw_set_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sw_set_addr(9) πŸ’–

okay bestie, welcome to the Kernel API Manual corner πŸ’… this one is called sw_set_addr(9), and it's giving tiny-but-important switch energy. no cap.


✨ NAME ✨

sw_set_addr β€” configure switch MAC address πŸŽ€


🌸 SYNOPSIS 🌸

void sw_set_addr (struct ksz_hw *hw , u8 *mac_addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” the hardware instance. like, the actual hardware object you're working with, bestie 🫢
  • mac_addr β€” the MAC address. the one and only address getting configured ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

real talk: this function configures the MAC address of the switch. that's the whole vibe. it's a void function, so it doesn't hand you back a value β€” it just does the MAC-address configuring thing πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

okay so the kernel file ./drivers/net/ethernet/micrel/ksz884x.c is the source of truth, and here's the full bestie list β€” no skipping, no cap πŸ‘‘


and that's the page, bestie πŸ’… signed off from ./drivers/net/ethernet/micrel, dated October 2026, and titled sw_set_addr(9) β€” periodt 🫢✨

πŸ“¦ where this page comes from