STRUCT BUFFER_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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