efx_nic_describe_stats(9)
π efx_nic_describe_stats(9) β Kernel API Manual π
okay so bestie, welcome to the efx_nic_describe_stats page, straight out of the Kernel API Manual β¨ this one's a lil function that describes supported statistics for ethtool, and honestly? it's giving "small but iconic." no cap.
π¦ SYNOPSIS π¦
size_t efx_nic_describe_stats (const struct efx_hw_stat_desc *desc ,
size_t count , const unsigned long *mask , u8 **names );
that's the whole vibe. four args, one size_t coming back at you. periodt. π«
πΈ ARGUMENTS πΈ
descβ the array ofstruct efx_hw_stat_descthat's out here describing the statistics. it's the main character of this operation, ngl. πcountβ the length of thedescarray. like, how many besties are in the group chat. π’maskβ a bitmask of which elements ofdescare enabled. which ones made the cut, fr fr. βnamesβ a buffer to copy names to, orNULL. and listen: the names get copied starting at intervals ofETH_GSTRING_LENbytes. that spacing detail is important, don't sleep on it. π«Ά
β¨ DESCRIPTION β¨
so what does it actually do?? it returns the number of visible statistics β meaning the number of set bits in the first count bits of mask for which a name is defined. that's the whole deal. set bit + name exists = counted. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/ethernet/sfc/nic.cβefx_nic_copy_stats(9) efx_nic_update_stats(9)
go read those too, they're literally the friends of this function. squad goals. π
π tiny reminder bestie: ifnamesisNULL, that's a whole valid mood β the function still tells you the count. just don't go dereferencing nothing, iykyk. π
mwah π that's the page! this lil slice of kernel wisdom lives at ./drivers/net/ethernet/sfc, dated October 2026, and it's signed off as efx_nic_describe_stats(9) β go forth and count your bits, bestie π§ββοΈππΈ
π¦ 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