ixgbe_get_num_per_func(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ixgbe_get_num_per_func (9) β€” Kernel API Manual ✨

okay bestie, welcome to the <pink>ixgbe_get_num_per_func(9)</pink> page πŸ’… this is a lil kernel API manual from the Kernel API Manual, and it's genuinely not scary, i promise 🫢


✨ NAME ✨

ixgbe_get_num_per_func β€” figure out how many resources each PF gets, no cap πŸŽ€


πŸ’– SYNOPSIS πŸ’–

u32 ixgbe_get_num_per_func (struct ixgbe_hw *hw , u32 max );

like, that's the whole vibe-check signature bestie, she's a u32 and she takes two args ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hw β€” a pointer to the HW structure πŸ‘‘ literally the hardware info handoff.
  • max β€” the value that's gonna get split evenly between each PF πŸ“ even-steven, periodt.

🌈 DESCRIPTION 🌈

so here's what's happening πŸ’« this function determines the number of valid functions by walking through the bitmap that comes back from parsing capabilities β€” and then it uses that to calculate the number of resources per PF, based on the max value you passed in ✨

tl;dr: bitmap β†’ valid function count β†’ divide max up per PF. it's giving math but make it firmware 🧚


πŸ”₯ RETURN πŸ”₯

it hands you back the number of resources per PF πŸ’– … or 0 if there are no PFs available 😭 (yes, zero. not a vibe, but it's honest.)


⭐ SEE ALSO ⭐

lowkey the biggest friend group in the kernel, ngl 🫢 the kernel file lives at ./drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c and these are all her besties:


reminder bestie: max gets split evenly between every PF, and if there are no PF besties to share with, you get 0. no PFs, no resources, no drama 🫢

and that's the whole page, ily πŸ’œ this came from <lavender>./drivers/net/ethernet/intel/i...</lavender> and it's dated October 2026 πŸ—“οΈβœ¨ mwah, go read some more ixgbe pages, they're iconic πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from