STRUCT NPS_ENET_PRIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct nps_enet_priv β€” bestie, this is literally the storage locker for ENET's private info. That's it, that's the vibe. πŸŽ€


✨ SYNOPSIS ✨

struct nps_enet_priv {
    void __iomem *regs_base;
    s32 irq;
    struct sk_buff *tx_skb;
    struct napi_struct napi;
    u32 ge_mac_cfg_2_value;
    u32 ge_mac_cfg_3_value;
 };

okay so that's the whole struct, laid out exactly like that β€” six fields, no cap. πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • regs_base β€” the base address of ENET's memory-mapped control registers. Like, the actual home address of the registers. the way it's a void __iomem *… that's the memory-mapped I/O pointer energy, periodt. πŸ’…
  • irq β€” the RX/TX IRQ number. an s32. that's it, that's the interrupt number for receive and transmit. ✨
  • tx_skb β€” socket buffer of the sent frame. a struct sk_buff *. lowkey important if you're into transmit paths. 🫢
  • napi β€” a struct napi_struct, i.e. the Structure for NAPI. iconic. literally named after what it is. 🧚
  • ge_mac_cfg_2_value β€” a u32. ngl the page doesn't say anything else about this one, so we're not gonna make stuff up about it. πŸ™ˆ
  • ge_mac_cfg_3_value β€” also a u32. also undescribed here. matching besties fr fr. πŸ’€
reminder: the source page only spells out descriptions for regs_base, irq, tx_skb, and napi β€” the two ge_mac_cfg_*_value fields are declared in the struct but left with no explanation. not me inventing lore πŸ’…

🌈 SEE ALSO 🌈


okay bye, this page came from the Kernel API Manual, and it's straight out of ./drivers/net/ethernet/ezchip with an October 2026 date stamp β€” stay hydrated and go look at the header file for the full scoop πŸ’œπŸ¦‹

πŸ“¦ where this page comes from