efx_nic_update_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨ β€” from the Kernel API Manual, bestie 🫢

okay so efx_nic_update_stats(9) is the function whose whole vibe is Convert statistics DMA buffer to array of u64 β€” that’s the main character energy here, periodt. πŸ’…


πŸ“œ SYNOPSIS ✨

void efx_nic_update_stats (const struct efx_hw_stat_desc *desc , size_t
count , const unsigned long *mask , u64 *stats , const void *dma_buf ,
bool accumulate );

🌸 ARGUMENTS 🌸

  • desc β€” this is the array of struct efx_hw_stat_desc that describes the DMA buffer layout, okay? DMA widths of 0, 16, 32 and 64 are supported; where the width is specified as 0, the corresponding element of stats is not updated. Not me pointing at the zero width like πŸ‘€.
  • count β€” length of the desc array. literally the count of desc, bestie.
  • mask β€” bitmask of which elements of desc are enabled. ✨
  • stats β€” buffer to update with the converted statistics. The length of this array must be at least count. no cap, that length requirement is real.
  • dma_buf β€” DMA buffer containing hardware statistics. 🫢
  • accumulate β€” if set, the converted values will be added rather than directly stored to the corresponding elements of stats. it’s giving β€œplus equals” energy, but only when set πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/net/ethernet/sfc/nic.c β€” efx_nic_describe_stats(9), efx_nic_copy_stats(9).


πŸ’– mwah, this page is sourced from ./drivers/net/ethernet/sfc and dated October 2026 β€” bye bestie! πŸŽ€

πŸ“¦ where this page comes from