STRUCT NPS_ENET_PRIV(9)
π 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 avoid __iomem *β¦ that's the memory-mapped I/O pointer energy, periodt. πirqβ the RX/TX IRQ number. ans32. that's it, that's the interrupt number for receive and transmit. β¨tx_skbβ socket buffer of the sent frame. astruct sk_buff *. lowkey important if you're into transmit paths. π«Άnapiβ astruct napi_struct, i.e. the Structure for NAPI. iconic. literally named after what it is. π§ge_mac_cfg_2_valueβ au32. 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 au32. also undescribed here. matching besties fr fr. π
reminder: the source page only spells out descriptions forregs_base,irq,tx_skb, andnapiβ the twoge_mac_cfg_*_valuefields are declared in the struct but left with no explanation. not me inventing lore π
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/ezchip/nps_enet.hβ go read the real header, bestie π nps_enet_reg_set(9)π₯nps_enet_reg_get(9)β
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
- 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