efx_siena_update_stats(9)
πΈ efx_siena_update_stats πΈ
okay bestie, welcome to the Kernel API Manual π
we're doing efx_siena_update_stats(9) today and honestly? it's giving "glow-up for hardware numbers" β¨
β¨ NAME β¨
efx_siena_update_stats β convert a statistics DMA buffer into an array of u64 π¦
like, the raw hardware vibe gets translated into numbers your code can actually read, no cap π
π SYNOPSIS π
void efx_siena_update_stats (const struct efx_hw_stat_desc *desc ,
size_t count , const unsigned long *mask , u64 *stats , const void
*dma_buf , bool accumulate );
periodt π that's the whole signature, don't come for me about the line breaks, that's literally how it's written β¨
π ARGUMENTS π
okay so here's the whole cast, main character energy each and every one of them π«Ά
descβ an array ofstruct efx_hw_stat_descthat describes the DMA buffer layout. DMA widths of0,16,32and64are supported π and lowkey important: where the width is specified as0, the corresponding element ofstatsis not updated. so it's a little "i'm not touching that one" situation πcountβ the length of thedescarray. that's it, that's the whole vibe. just how many are in there π₯maskβ a bitmask of which elements ofdescare enabled. think of it as the guest list for the function π only the invited ones get processed πstatsβ the buffer you're updating with the converted statistics π heads up bestie: the length of this array must be at leastcount. not a suggestion, that's the rule πΈdma_bufβ the DMA buffer containing hardware statistics. this is where the raw numbers live π¦accumulateβ if set, the converted values will be added to the corresponding elements ofstatsrather than directly stored π so it's either "here's your fresh value" or "we're stacking, we're adding to the collection" β¨
ngl, thatstatslength requirement is not a drill β at leastcount, always π«Ά
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/sfc/siena/nic.c efx_siena_describe_stats(9)
go read those too, iykyk π
and that's the page, bestie π this gem comes to you from the kernel source at ./drivers/net/ethernet/sfc/siena, dated October 2026, and it's still efx_siena_update_stats(9) around here π slay π
β¨
π¦ 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