ice_reserve_sf_num(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_reserve_sf_num β€” Kernel API Manual ✨

okay bestie, welcome to the group chat where we learn kernel APIs πŸ’– you're in the Kernel API Manual section, and today's main character is ice_reserve_sf_num. she's the one who gets you a subfunction number for your port. no cap. πŸŽ€


✨ NAME ✨

ice_reserve_sf_num β€” reserve a subfunction number for this port πŸ¦‹


🌸 SYNOPSIS 🌸

int ice_reserve_sf_num (struct ice_pf *pf , const struct
devlink_port_new_attrs *new_attr , struct netlink_ext_ack *extack , u32
*sfnum );

πŸ‘‘ ARGUMENTS πŸ‘‘

  • pf β€” pointer to the pf structure 🫢 literally just a pointer to the pf, that's it
  • new_attr β€” the devlink port attributes that got requested πŸ’…
  • extack β€” the extack, and it's here for reporting error messages 😭 so when things go sideways, this is who tells you
  • sfnum β€” on success, this is where the sf number that got reserved shows up ⭐

πŸ’– DESCRIPTION πŸ’–

So the whole vibe: this function reserves a subfunction number for this port. That's the moment. ✨

and like, huge caveat incoming β€” it's only called for DEVLINK_PORT_FLAVOUR_PCI_SF ports. not the other flavours. just that one. iykyk πŸ’…


πŸ”₯ RETURN πŸ”₯

zero on success, or an error code on failure 🌈 (zero is the slay outcome, an error code is the "we don't talk about it" outcome πŸ’€)


🧚 SEE ALSO 🧚

the kernel file herself lives at ./drivers/net/ethernet/intel/ice/devlink/port.c β€” go say hi πŸ“

and here's the whole friend group, no one gets left out 🫢:


anyway that's the page πŸ’œ this one came from ./drivers/net/ethernet/intel/i... and she's dated October 2026, so jot that down bestie, it's giving archival queen πŸ‘‘βœ¨ periodt.

πŸ“¦ where this page comes from