ice_devlink...w_check_attr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

ice_devlink_port_new_check_attr β€” bestie, this is the vibe check for new port attributes ✨

So like, this is a page from the Kernel API Manual (ice_devlink...w_check_attr(9)), and it's literally just here to make sure the new port attrs are valid before anything else happens.


πŸŽ€ SYNOPSIS πŸŽ€

int ice_devlink_port_new_check_attr (struct ice_pf *pf , const struct
devlink_port_new_attrs *new_attr , struct netlink_ext_ack *extack );

🌸 ARGUMENTS 🌸

  • pf β€” pointer to the PF structure, aka the main character of this whole function 🫢
  • new_attr β€” the attributes for the new port, like the little outfit the port is gonna wear ✨
  • extack β€” extack for reporting error messages, so when something's off it can actually tell you why 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: this function checks that the attributes for the new port are valid before continuing on to allocate the devlink port. Like a bouncer at the club checking IDs, but for port attrs πŸ’… No valid attrs, no port, periodt.


⭐ RETURN ⭐

zero on success or an error code on failure. Slay if it's zero, not slay if it's an error code 😭


🌈 SEE ALSO 🌈

The kernel file this lives in, no cap:

./drivers/net/ethernet/intel/ice/devlink/port.c

And the whole friend group 🫢:


that's the whole page bestie, go forth and validate those attrs πŸ’–βœ¨

🧚 sign-off cuteness: this was the Kernel API Manual version of ice_devlink...w_check_attr(9), sourced from ./drivers/net/ethernet/intel/i... and dated October 2026 β€” iconic, no notes πŸ’…πŸŽ€
πŸ“¦ where this page comes from