STRUCT SMB_DATA_BUFFER(9)
π 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
- 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