STRUCT CDNS3_ALIGNED_BUF(9)
π struct cdns3_aligned_buf(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're reading kernel docs together, this is our bonding arc π«Ά. Today's main character is struct cdns3_aligned_buf, and it's literally just the little guy that represents an aligned buffer used for DMA transfer. humble! iconic! necessary! β¨
πΈ NAME πΈ
struct cdns3_aligned_buf β represent aligned buffer used for DMA transfer π
π SYNOPSIS π
struct cdns3_aligned_buf {
void *buf;
dma_addr_t dma;
u32 size;
enum dma_data_direction dir;
unsigned in_use:1;
struct list_head list;
};
yes that's the whole vibe check right there, copied exactly, no notes π
π¦ Members π¦
okay so let's meet the cast one by one, no skipping, we appreciate every field here π
bufβ the aligned to 8 bytes data buffer, bestie. and lowkey important: the buffer address used in TRB shall be aligned to 8. so like, shall. that's not a suggestion, that's a whole requirement πdmaβ the dma address. that's it, that's the field, it's giving "shows up, does its job, leaves" πsizeβ size of buffer. short king of a description but fr fr essential πin_useβ inform if this buffer is associated withusb_request. literally the yes/no girlie of the struct πlistβ used to adding instance of this object to list. so it's the friend who introduces you to the whole group chat ππ«Ά
side note bestie: the struct definition up there also has adirfield of typeenum dma_data_direction, but this page's Members list doesn't describe it. not me noticing π β I'm just telling you what's on the page, nothing more, iykyk π§
π₯ SEE ALSO π₯
go read these next, we're doing a whole marathon, bring snacks π:
- Kernel file
./drivers/usb/cdns3/cdns3-gadget.hstruct cdns3_usb_regs(9),struct cdns3_trb(9),struct cdns3_endpoint(9),struct cdns3_request(9),struct cdns3_device(9)
like, that's the entire cdns3 extended universe and we're seated for all of it π
and that's the page!! slay π
this was ./drivers/usb/cdns3, October 2026, struct cdns3_aligned_buf(9) β mwah, go forth and align your buffers to 8, ily, bye πβ¨π
π¦ 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