dwc3_prepare_one_trb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dwc3_prepare_one_trb(9) ✨

okay so bestie, welcome to the dwc3_prepare_one_trb page from the Kernel API Manual πŸ’– this one's short and sweet β€” literally just "setup one TRB from one request" β€” but it's lowkey important, so let's get into it 🫢


🌸 NAME 🌸

dwc3_prepare_one_trb β€” setup one TRB from one request ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void dwc3_prepare_one_trb (struct dwc3_ep *dep , struct dwc3_request
*req , unsigned int trb_length , unsigned int chain , unsigned int node
, bool use_bounce_buffer , bool must_interrupt );

like, yes, seven whole arguments, she's got a lot going on and we respect it πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dep β€” the endpoint for which this request is prepared 🧚
  • req β€” a dwc3_request pointer, iykyk
  • trb_length β€” buffer size of the TRB, aka how much we're fitting in there
  • chain β€” should this TRB be chained to the next? yes/no moment fr fr
  • node β€” only for isochronous endpoints. the first TRB needs a different type πŸ‘€
  • use_bounce_buffer β€” set to use bounce buffer πŸ€
  • must_interrupt β€” set to interrupt on TRB completion ⚑
no cap, that node one is the sneaky one β€” it only matters for isochronous endpoints, and only because the first TRB needs a different type. don't sleep on it πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/usb/dwc3/gadget.c β€” and here's the whole friend group πŸ’œ:


and that's the whole page, bestie!! 🌈⭐

this lil icon lives over in ./drivers/usb/dwc3, dated October 2026, and she goes by dwc3_prepare_one_trb(9) β€” go off, queen πŸ‘‘πŸ’…

πŸ“¦ where this page comes from