STRUCT BRCMF_SKBUFF_CB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct brcmf_skbuff_cb(9) πŸ’–

okay bestie, welcome to the Kernel API Manual entry for struct brcmf_skbuff_cb β€” yes that's a whole mouthful, iykyk, but it's literally the control buffer that rides along with an skbuff ✨


🌸 NAME 🌸

struct brcmf_skbuff_cb β€” the control buffer associated with skbuff. that's it, that's the vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct brcmf_skbuff_cb {
    u16 bus_flags;
    u16 if_flags;
    u32 htod;
    u16 htod_seq;
    enum brcmf_fws_skb_state state;
    struct brcmf_fws_mac_descriptor *mac;
 };

look at her. icon behavior. no cap πŸ’…


✨ Members ✨

  • bus_flags β€” 2 bytes reserved for bus specific parameters 🚌 like, literally just holding space for the bus, okurrr.
  • if_flags β€” holds the interface index and the packet related flags. two-for-one, we love a multitasker πŸ’–
  • htod β€” the host to device packet identifier (used in the PKTTAG tlv). host ➑️ device, periodt πŸ”₯
  • htod_seq β€” this 16-bit one is the original seq number for every suppress packet πŸŽ€
  • state β€” the transmit state of the packet. how's she doing? this tells you 🌈
  • mac β€” descriptor related to the destination for this packet. where's it going? this knows πŸ¦‹

πŸ‘‘ Description πŸ‘‘

so here's the tea, bestie: this information is stored in the control buffer struct sk_buff::cb, and that? that provides 48 bytes of storage. so this structure should not exceed that. 48 bytes. that's the limit. don't be out here exceeding it fr fr 😭


πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c
  • Firmware Signalling(9)
  • enum brcmf_fws_skb_state(9)
  • enum brcmf_fws_txstatus(9)
  • struct brcmf_fws_mac_descriptor(9)
  • enum brcmf_fws_hanger_item_state(9)
  • struct brcmf_fws_hanger_item(9)
  • struct brcmf_fws_hanger(9)
  • brcmf_fws_get_tlv_len(9)

go read those too, they're all part of the friend group 🫢


ngl this page came from ./drivers/net/wireless/broadco... and it's dated October 2026 β€” and that's the whole struct brcmf_skbuff_cb(9) situation. slay, stay hydrated, and don't overflow your control buffer πŸ’€πŸ§šβ€β™€οΈπŸ“
πŸ“¦ where this page comes from