emac_update_hw_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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.lock must be held while calling this function, and while reading from adpt->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