ef4_nic_update_stats(9)
π ef4_nic_update_stats β like, the manual page π
okay so bestie, welcome to ef4_nic_update_stats(9), straight out of the Kernel API Manual β¨ this one's a little function with a big job, and honestly? she ate.
πΈ NAME πΈ
ef4_nic_update_stats β converts a statistics DMA buffer into an array of u64. that's it, that's the whole vibe. a glow-up from raw DMA bytes to actual numbers you can read π
π¦ SYNOPSIS π¦
void ef4_nic_update_stats (const struct ef4_hw_stat_desc *desc , size_t
count , const unsigned long *mask , u64 *stats , const void *dma_buf ,
bool accumulate );
like, six whole arguments. she's high-maintenance but worth it, i promise π«Ά
π ARGUMENTS π
descβ an array ofstruct ef4_hw_stat_descthat describes how the DMA buffer is laid out. DMA widths of0,16,32and64are supported β and here's the slay detail: when the width is specified as0, the corresponding element ofstatsis not updated. not me ghosting that element πcountβ the length of thedescarray. keep count, bestie πmaskβ a bitmask of which elements ofdescare enabled. think of it as the guest list β if you're not on it, you're not getting in πstatsβ the buffer you're updating with the converted statistics. the length of this array must be at leastcountβ no cap, if it's shorter you're gonna have a bad time πdma_bufβ the DMA buffer containing the hardware statistics. the raw material, the unedited footage, the before pic π¬accumulateβ if set, the converted values get added to the corresponding elements ofstatsrather than directly stored. it's giving "keep the receipts and stack them" π₯ if it's not set, it just overwrites. simple as that.
β SEE ALSO β
- Kernel file
./drivers/net/ethernet/sfc/falcon/nic.cβ go read the source, iykyk π ef4_nic_describe_stats(9)β her sister page, equally iconic π
okay real talk:statsneeds to be at leastcountlong, and width-0entries get skipped entirely. don't come for me if you ignore that, i literally told you π
and that's the whole page!! mwah π this one came from the ./drivers/net/ethernet/sfc/falcon crew, dated October 2026, and it's ef4_nic_update_stats(9) forever and always π§β¨ bye bestie, go convert some stats π
π¦ 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