ice_devlink...fn_state_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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