STRUCT BUFFER_STATE(9)
π NAME π
struct buffer_state β stores Rx/Tx buffer state. That's literally the whole NAME section, and it's serving exactly what it says on the tin. This is the Kernel API Manual entry for struct buffer_state(9), and it's lowkey iconic that this struct gets its own page. π
β¨ SYNOPSIS β¨
Here's the exact struct, no cap:
struct buffer_state {
struct sk_buff *skb;
dma_addr_t addr;
__u32 len;
};
The fields in the synopsis are skb, addr, and len. That's the shape of it, bestie. π«Ά
πΈ Members πΈ
addrβ start address of DMA-mapped memory region.lenβ length of DMA-mapped memory region.
Quick note: the Members list describes addr and len only. skb shows up in the struct above, but this page doesn't give it a Members description. π
π₯ SEE ALSO π₯
Kernel file ./drivers/net/ethernet/arc/emac.h is the spot, and the linked entries are struct arc_emac_bd(9), struct arc_emac_priv(9), arc_reg_set(9), arc_reg_get(9), arc_reg_or(9), and arc_reg_clr(9). Go read those if you're in your kernel-lore era. π
okay bye bestie π this page is from the ./drivers/net/ethernet/arc source/version, dated October 2026, and it's the struct buffer_state(9) manual entry β mwah, 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