STRUCT EF4_HW_STAT_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, NULL if it should not be exposed πŸ™ˆ (yes, some stats are main-character-only, we keep those private)
  • dma_width β€” the width, in bits πŸ”₯ and it's 0 for the non-DMA statistics, iykyk
  • offset β€” 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