ice_devlink...fn_state_get(9)
π ice_devlink_port_fn_state_get β the Kernel API Manual glow-up π
okay so bestie, welcome to the ice_devlink...fn_state_get(9) page β that's the fancy manual-name thingy, and yes we're keeping the whole vibe. This is a Kernel API Manual situation, and it's literally about asking a port "hey girl, what's your state?" π
β¨ NAME β¨
ice_devlink_port_fn_state_get β the devlink handler for port state get. she's the one who goes and fetches the state, no cap π«Ά
πΈ SYNOPSIS πΈ
int ice_devlink_port_fn_state_get (struct devlink_port *port , enum
devlink_port_fn_state *state , enum devlink_port_fn_opstate *opstate ,
struct netlink_ext_ack *extack );
like, that's the whole signature, character for character, don't @ me π
π¦ ARGUMENTS π¦
portβ pointer to devlink port. the main character of this whole function tbh πstateβ the admin configured state of the port. what the port wants to be β¨opstateβ the current port operational state. what the port actually is rn, iykyk πextackβ extack for reporting error messages. the girl who tells you when something's wrong, gently π
π DESCRIPTION π
Gets port state. that's it, that's the whole plot. she gets port state. iconic behavior, honestly π
β RETURN β
zero on success, or an error code on failure. so basically either she slays (returns zero) or she comes back with a whole error code situation π
π₯ SEE ALSO π₯
the kernel file first, because context is everything:
- Kernel file
./drivers/net/ethernet/intel/ice/devlink/port.c
and then the whole friend group, all 29 of them, fr fr:
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_set(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)
ok that's the whole page bestie, nothing skipped, every single flag and reference accounted for, we ate and left no crumbs π
and that's a wrap! sign-off time π§ this one lives in ./drivers/net/ethernet/intel/i... (the source path, cutely truncated just like the original π), dated October 2026, and the page name is ice_devlink...fn_state_get(9) β the same ice_devlink...fn_state_get(9) we shouted out at the top. bye bestie, go get that port state πβ¨
π¦ 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