ice_devlink..._hw_addr_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so we're deep in the Kernel API Manual today and honestly? this one is short and sweet and I'm obsessed. it's the devlink handler for getting a mac address, and no cap it just... does the thing. let's go ✨


🌸 NAME 🌸

ice_devlink_port_fn_hw_addr_get β€” the devlink handler for mac address get, periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

like, four args, returns an int, that's the whole vibe 🫢


✨ ARGUMENTS ✨

  • port β€” pointer to devlink port πŸ‘‘ this is the main character
  • hw_addr β€” hw address to set πŸ™ˆ yes bestie the wording says "to set", we are quoting the lore exactly
  • hw_addr_len β€” hw address length πŸ“
  • extack β€” extack for reporting error messages 😭 so when things go wrong, this is who tells you

πŸ’– DESCRIPTION πŸ’–

Returns mac address for the port. that's it. that's the whole description. short king behavior fr fr 🌈


⭐ RETURN ⭐

zero on success or an error code on failure β€” literally the classic. zero means slay, anything else means something went sideways and you should probably look at that extack πŸ‘€


🧚 SEE ALSO 🧚

Kernel file ./drivers/net/ethernet/intel/ice/devlink/port.c β€” the home base of all this πŸ’œ

like, that's the whole friend group right there πŸ˜­πŸ’–


ngl the function list is giving "extended family at the holidays" energy β€” but every single one is listed, no skips, no cuts, iykyk πŸ¦‹

sign-off era πŸ’Œ β€” this page came from ./drivers/net/ethernet/intel/i..., dated October 2026, and it's the ice_devlink..._hw_addr_get(9) page, all wrapped up. mwah, go read the source bestie πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from