efx_siena_describe_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ efx_siena_describe_stats ✨

okay bestie, so this is a kernel API manual page for efx_siena_describe_stats(9) and it's literally all about describing supported statistics for ethtool. no cap, it's giving "I tell ethtool which stats exist" energy. let's get into it πŸ’…


πŸ“œ SYNOPSIS

size_t efx_siena_describe_stats (const struct efx_hw_stat_desc *desc ,
size_t count , const unsigned long *mask , u8 **names );

πŸŽ€ ARGUMENTS

  • desc β€” an array of struct efx_hw_stat_desc that describes the statistics. it's the whole menu of stats, basically πŸ“
  • count β€” the length of the desc array. like, how many items are actually on that menu.
  • mask β€” a bitmask of which elements of desc are enabled. think of it as the little checkboxes next to each stat βœ…
  • names β€” a buffer to copy names to, or NULL. and here's the detail bestie: the names are copied starting at intervals of ETH_GSTRING_LEN bytes. not me being precise about the spacing πŸ€“βœ¨

πŸ’– DESCRIPTION

so what does it actually do? it returns the number of visible statistics. and "visible" means the number of set bits in the first count bits of mask for which a name is defined. periodt. if there's no name, it doesn't count, even if the bit is set. the way that mask bit has to actually have a name attached to be visible? iconic gatekeeping, honestly πŸ‘‘


πŸ¦‹ SEE ALSO


lowkey reminder: this page is from the kernel API manual for ./drivers/net/ethernet/sfc/siena and it's dated October 2026. slay, go read the source bestie πŸ’œ

that's the whole page, no cap. you're welcome, mwah 🫢

πŸ“¦ where this page comes from