fm10k_read_hw_stats_48b(9)
π 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 thehw, 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:
fm10k_get_bus_info_generic(9)fm10k_get_invariants_generic(9)fm10k_start_hw_generic(9)fm10k_disable_queues_generic(9)fm10k_stop_hw_generic(9)fm10k_read_hw_stats_32b(9)fm10k_update_hw_base_48b(9)fm10k_update_hw_stats_tx_q(9)fm10k_update_hw_stats_rx_q(9)fm10k_update_hw_stats_q(9)fm10k_unbind_hw_stats_q(9)fm10k_get_host_state_generic(9)
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
- 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