ice_devlink..._hw_addr_get(9)
π ice_devlink..._hw_addr_get(9) β like, the Kernel API Manual, bestie π
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 characterhw_addrβ hw address to set π yes bestie the wording says "to set", we are quoting the lore exactlyhw_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 π
ice_devlink_port_opt_speed_str(9)ice_devlink_port_options_print(9)ice_devlink_aq_set_port_option(9)ice_devlink_port_split(9)ice_devlink_port_unsplit(9)ice_devlink_set_port_split_options(9)ice_devlink_set_switch_id(9)ice_devlink_create_pf_port(9)ice_devlink_destroy_pf_port(9)ice_devlink_port_get_vf_fn_mac(9)ice_devlink_port_set_vf_fn_mac(9)ice_devlink_create_vf_port(9)ice_devlink_destroy_vf_port(9)ice_devlink_create_sf_dev_port(9)ice_devlink_destroy_sf_dev_port(9)ice_activate_dynamic_port(9)ice_deactivate_dynamic_port(9)ice_dealloc_dynamic_port(9)ice_dealloc_all_dynamic_ports(9)ice_devlink_port_new_check_attr(9)ice_devlink_port_del(9)ice_devlink_port_fn_hw_addr_set(9)ice_devlink_port_fn_state_set(9)ice_devlink_port_fn_state_get(9)ice_reserve_sf_num(9)ice_devlink_create_sf_port(9)ice_devlink_destroy_sf_port(9)ice_alloc_dynamic_port(9)ice_devlink_port_new(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms