ice_devlink...fn_state_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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, bestie
  • state β€” the state to set ⭐ the actual vibe we're switching it to
  • extack β€” 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 πŸ’œ

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