emac_update_hw_stats(9)
π emac_update_hw_stats β a Kernel API Manual moment π
okay bestie, welcome to emac_update_hw_stats(9), the ninth section of the Kernel API Manual, and honestly? this one is short and sweet and you're gonna eat it up β¨
πΈ NAME πΈ
emac_update_hw_stats β read the EMAC stat registers πβ¨
π SYNOPSIS π
void emac_update_hw_stats (struct emac_adapter *adpt );
like, that's the whole signature. void, takes one pointer, returns nothing, iconic behaviour tbh π
π¦ ARGUMENTS π¦
adptβ pointer to adapter struct π«Ά that's it, that's the whole argument list, and she's carrying all the weight
π DESCRIPTION π
So what does she do? She reads the stats registers and writes the values to adpt->stats. boom. data collected. slay ππ
β οΈ okay this is the important part, don't skip it:adpt->stats.lockmust be held while calling this function, and while reading fromadpt->stats. both. no exceptions. no cap. ππ€
β SEE ALSO β
- Kernel file
./drivers/net/ethernet/qualcomm/emac/emac.cβ go read the source bestie, it's all there ππ
and that's the whole page!! short king energy fr fr π tysm for reading, mwah π
sign-off time: this little beauty comes from the source line ./drivers/net/ethernet/qualcom... (yes it's literally truncated like that in the original, I'm not touching it π) and she's dated October 2026, filed under emac_update_hw_stats(9). see you in the next manpage, love u bye π§ββοΈππ
π¦ 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