i40e_stats_..._rx_discards(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ i40e_stats_..._rx_discards(9) ✨

okay so this is a page from the Kernel API Manual (section 9, kernel dev stuff, iykyk) and honestly bestie it's a tiny little function but she's doing her part πŸ’…


πŸŽ€ NAME πŸŽ€

i40e_stats_update_rx_discards β€” literally just updates rx_discards. that's it. that's the whole job. and she ate πŸ“


🌸 SYNOPSIS 🌸

void i40e_stats_update_rx_discards (struct i40e_vsi *vsi , struct
i40e_hw *hw , int stat_idx , bool offset_loaded , struct i40e_eth_stats
*stat_offset , struct i40e_eth_stats *stat );

returns void so like… she gives nothing back emotionally but she DOES do the work, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vsi β€” ptr to the VSI that's getting updated. main character energy, she's the one being refreshed ✨
  • hw β€” ptr to the hardware info. the hardware lore fr fr πŸ‘‘
  • stat_idx β€” the VSI's stat_counter_idx. her little name tag at the party πŸŽ€
  • offset_loaded β€” ptr to the VSI's stat_offsets_loaded. keeping track of whether the offsets have been loaded, very responsible of her πŸ’œ
  • stat_offset β€” ptr to stat_offset, which is where you stash the first read of that specific register. the receipts, basically πŸ“
  • stat β€” ptr to the VSI's stat that's the one getting updated. the glow-up target πŸ¦‹
ok real talk, they're all pointers and they all matter β€” don't be out here passing NULL and acting surprised, bestie 😭

πŸ’– SEE ALSO πŸ’–

first up, the kernel file she lives in:

  • ./drivers/net/ethernet/intel/i40e/i40e_main.c

and now… the extended friend group 😭 this is a LOT of besties, but every single one of them is invited, periodt:

bestie if you made it through that whole list you deserve a little treat πŸ“ genuinely iconic stamina πŸ’…

and that's the whole page!! mwah πŸ’– this cutie lives in ./drivers/net/ethernet/intel/i40e, and the manual itself is dated October 2026 β€” so like, future queen behavior honestly πŸ‘‘βœ¨

πŸ“¦ where this page comes from