fm10k_read_hw_stats_48b(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fm10k_read_hw_stats_48b

okay so bestie, welcome to the fm10k_read_hw_stats_48b(9) page β€” yes that's the whole manual name, it's from the Kernel API Manual, and no I did not make that name up, it's giving extremely specific driver internals and honestly? iconic. πŸŽ€


✨ NAME ✨

fm10k_read_hw_stats_48b β€” reads the value of 48-bit registers. that's it, that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

u64 fm10k_read_hw_stats_48b (struct fm10k_hw *hw , u32 addr , struct
       fm10k_hw_stat *stat );

like, look at that signature. u64 coming back at you. three args. it's giving functional. πŸ’…


🫢 ARGUMENTS 🫢

  • hw β€” pointer to the hardware structure. the main character, fr fr. it's the hardware, it's the hw, it's right there.
  • addr β€” address of the register containing the lower 32-bit value. yes, lower 32-bit β€” there's more of it elsewhere, keep reading, iykyk. πŸ”₯
  • stat β€” pointer to the structure holding hw stat information. it holds the stats. it is, lowkey, the whole point.

πŸ’– DESCRIPTION πŸ’–

so what this function actually does: it reads the content of 2 registers, and those two get combined to represent a 48-bit statistical value. two registers! one number! the math is mathing and I'm obsessed. ✨

but wait, there's more β€” extra processing is required to handle overflowing. 😭 yes, overflow. it happens. the function handles it so you don't have to, which is very generous of it honestly.

and finally, a delta value is returned, representing the difference between the values stored in the registers and the values stored in the statistic counters. delta. difference. change. it's giving before and after and it ate. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file: ./drivers/net/ethernet/intel/fm10k/fm10k_common.c

and the whole friend group, no cap:


okay that's the page, ily, go read your 48-bit registers responsibly 🧚

this cutie was brought to you by ./drivers/net/ethernet/intel/f... and it's dated October 2026 β€” yes, the future. slay. πŸ’œ

πŸ“¦ where this page comes from