STRUCT EF4_HW_STAT_DESC(9)
π struct ef4_hw_stat_desc(9)
okay so bestie, welcome to the Kernel API Manual β¨ this one's a lil struct page and it's literally the cutest little descriptor you ever did see π
πΈ NAME πΈ
struct ef4_hw_stat_desc β no cap, it's the Description of a hardware statistic π«Ά
β¨ SYNOPSIS β¨
here's the whole vibe, character for character, don't touch it:
struct ef4_hw_stat_desc {
const char *name;
u16 dma_width;
u16 offset;
};
π¦ Members π¦
so like, three members, three lil besties, each one iconic in her own way π
nameβ this is the name of the statistic as visible through ethtool π or, plot twist,NULLif it should not be exposed π (yes, some stats are main-character-only, we keep those private)dma_widthβ the width, in bits π₯ and it's0for the non-DMA statistics, iykykoffsetβ the offset within stats π― and lowkey this one gets ignored for non-DMA statistics, so don't come for her, she's just there for the DMA girlies
π SEE ALSO π
okay this list is long and every single one of these is a whole era, so buckle up bestie π
Kernel file ./drivers/net/ethernet/sfc/falcon/net_driver.h plus all of these:
struct ef4_buffer(9)struct ef4_special_buffer(9)struct ef4_tx_buffer(9)struct ef4_tx_queue(9)struct ef4_rx_buffer(9)struct ef4_rx_page_state(9)struct ef4_rx_queue(9)struct ef4_channel(9)struct ef4_msi_context(9)struct ef4_channel_type(9)struct ef4_link_state(9)struct ef4_phy_operations(9)enum ef4_phy_mode(9)struct ef4_nic(9)struct ef4_nic_type(9)
likeβ¦ the whole friend group fr fr ππ
ok that's the whole page, go forth and read your stats π
and finally β this lil masterpiece lives in ./drivers/net/ethernet/sfc/falcon, dropped October 2026, and it's signed struct ef4_hw_stat_desc(9). slay, periodt ππ
π¦ 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