ice_devlink...fn_state_set(9)
π ice_devlink_port_fn_state_set(9) π
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, it's giving official β¨ and we're about to read a whole function together and honestly? it's a cute one.
πΈ NAME πΈ
ice_devlink_port_fn_state_set β the devlink handler for port state set, aka the lil' function that handles when someone wants to set a port's state π
β¨ SYNOPSIS β¨
int ice_devlink_port_fn_state_set (struct devlink_port *port , enum
devlink_port_fn_state state , struct netlink_ext_ack *extack );
π«Ά ARGUMENTS π«Ά
portβ pointer to the devlink port π like, this is the port we're talking about, bestiestateβ the state to set β the actual vibe we're switching it toextackβ extack for reporting error messages π so if something goes wrong, this is the one that gets to spill the tea
π¦ DESCRIPTION π¦
Activates or deactivates the port. that's it, that's the whole thing π it's giving on/off energy, no cap. literally the main character of port states π
π RETURN π
zero on success π or an error code on failure π (iykyk, always check your return values bestie, fr fr)
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/intel/ice/devlink/port.cπ§ 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_hw_addr_get(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 a whole friend group of functions and they all ate π₯ go read them too, no skips π
ok that's the whole page bestie, you slayed it π β¨
sign-off time π this lil' beauty lives at ./drivers/net/ethernet/intel/i... (yes the path got cutely truncated, that's how it came) and it's dated October 2026 β so it's from the future, iconic behavior honestly π¦ and the page itself is ice_devlink...fn_state_set(9), we love a full circle moment π byeee π«Ά
π¦ 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