STRUCT PCH_GBE_TX_RING(9)
π struct pch_gbe_tx_ring(9) β like, the whole tx ring situation
okay bestie, so this is a page from the Kernel API Manual and it's all about struct pch_gbe_tx_ring, which is literally the tx ring info. that's the NAME section, we're done with it, slay. π
β¨ SYNOPSIS β¨
here's the whole vibe, character for character, no cap:
struct pch_gbe_tx_ring {
struct pch_gbe_tx_desc *desc;
dma_addr_t dma;
unsigned int size;
unsigned int count;
unsigned int next_to_use;
unsigned int next_to_clean;
struct pch_gbe_buffer *buffer_info;
};
πΈ MEMBERS πΈ
okay so every single field, and what it actually does β paying attention bestie, this is the whole point π
descβ pointer to the descriptor ring memory. it's giving "here's where the actual ring lives" energy β¨dmaβ the physical address of the descriptor ring. yes, physical, not virtual, don't get it twisted πsizeβ the length of the descriptor ring, and it's measured in bytes πcountβ how many descriptors are chilling in the ring π₯next_to_useβ the next descriptor that's gonna get a buffer associated with it. like, the one that's up next πnext_to_cleanβ the next descriptor to check for the DD status bit. yep, that's the whole description, that's the assignment π«Άbuffer_infoβ an array of buffer information structs. plural, an array, many of them π
π¦ SEE ALSO π¦
go read these next, i'm obsessed with a good cross-reference moment:
Kernel file ./drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h
- struct
pch_gbe_mac_info(9) - struct
pch_gbe_phy_info(9) - struct
pch_gbe_rx_desc(9) - struct
pch_gbe_tx_desc(9) - struct
pch_gbe_buffer(9) - struct
pch_gbe_rx_ring(9) - struct
pch_gbe_hw_stats(9) - struct
pch_gbe_privdata(9) - struct
pch_gbe_adapter(9)
fr fr read the rx one too, she's the sister struct and she ate π
and that's the page!! sign-off time: this lil gem comes from the ./drivers/net/ethernet/oki-sem... corner of the source, and it's dated October 2026 β genuinely iconic, go read the header file, ily, bye ππ§
π¦ 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