ice_devlink..._hw_addr_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the ice_devlink..._hw_addr_set(9) page from the Kernel API Manual πŸ’… this one is short, focused, and honestly it’s giving β€œtiny function, clear job” energy. ✨

πŸ’– NAME πŸ’–

ice_devlink_port_fn_hw_addr_set β€” devlink handler for mac address set. That’s the whole vibe: it handles setting the mac address. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int ice_devlink_port_fn_hw_addr_set (struct devlink_port *port , const
       u8 *hw_addr , int hw_addr_len , struct netlink_ext_ack *extack );

✨ ARGUMENTS ✨

  • port β€” pointer to devlink port, aka the port we’re doing this for πŸ‘‘
  • hw_addr β€” hw address to set, the actual address bestie 🫢
  • hw_addr_len β€” hw address length, so we know how long it is πŸ“
  • extack β€” extack for reporting error messages, the little messenger when things go sideways 😭

🌸 DESCRIPTION 🌸

Sets mac address for the port, verifies arguments and copies address to the subfunction structure. no cap, that’s the whole description β€” it’s giving β€œdo the thing, check the thing, copy the thing” πŸ’…

πŸ”₯ RETURN πŸ”₯

zero on success or an error code on failure. so: happy path = zero, sad path = error code πŸ’€

πŸŽ€ SEE ALSO πŸŽ€

also peep these, iykyk πŸ‘€


okay that’s the whole tea 🫢 source/version: ./drivers/net/ethernet/intel/i... Β· October 2026 Β· page ice_devlink..._hw_addr_set(9) β€” byeee bestie πŸ’–

πŸ“¦ where this page comes from