STRUCT SMB_DATA_BUFFER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct smb_data_buffer(9) β€” a Kernel API Manual moment πŸ’–

okay bestie, so this page is from the Kernel API Manual, and it's all about struct smb_data_buffer, which is literally the struct describing the buffer that SMB uses. no cap, that's the whole vibe. let's get into it 🫢


🌸 NAME 🌸

struct smb_data_buffer β€” all the deets on the buffer that SMB is out here using πŸ’…

✨ SYNOPSIS ✨

here's the struct itself, and yes you're gonna want it verbatim:

struct smb_data_buffer {
    void *buf_base;
    u32 buf_hw_base;
    unsigned long buf_size;
    unsigned long data_size;
    unsigned long buf_rdptr;
 };

πŸŽ€ Members πŸŽ€

  • buf_base β€” the memory mapped base address of SMB. this is the main character address, fr fr 🌟
  • buf_hw_base β€” the SMB buffer start Physical base address, and heads up: this one is only used 32bits. that's the whole rule, don't come for me πŸ™ˆ
  • buf_size β€” the size of the buffer. big, small, it's giving capacity πŸ’€
  • data_size β€” the size of the available trace data for SMB. so like, how much actual data you've got to work with πŸ“
  • buf_rdptr β€” the current read position (index) within the buffer. where you're at rn, the little bookmark πŸ¦‹

πŸ”₯ SEE ALSO πŸ”₯

  • the kernel file ./drivers/hwtracing/coresight/ultrasoc-smb.h, and
  • struct smb_drv_data(9)

that's your reading list, iykyk πŸ“šβœ¨


ngl this one's short and sweet, but every single member matters if you're poking at SMB buffer stuff. everything above is straight from the page, i didn't invent a single thing πŸ’―

roses are red, this struct is iconic πŸ‘‘ β€” sign-off time: this page lives under ./drivers/hwtracing/coresight, dated October 2026, and the title's struct smb_data_buffer(9). slay, go read the other one too πŸŽ€πŸ’œ

πŸ“¦ where this page comes from