efx_siena_describe_stats(9)
β¨ 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 ofstruct efx_hw_stat_descthat describes the statistics. it's the whole menu of stats, basically πcountβ the length of thedescarray. like, how many items are actually on that menu.maskβ a bitmask of which elements ofdescare enabled. think of it as the little checkboxes next to each stat βnamesβ a buffer to copy names to, orNULL. and here's the detail bestie: the names are copied starting at intervals ofETH_GSTRING_LENbytes. 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
- Kernel file
./drivers/net/ethernet/sfc/siena/nic.c efx_siena_update_stats(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms