dwc3_prepare_one_trb(9)
β¨ 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β adwc3_requestpointer, iykyktrb_lengthβ buffer size of the TRB, aka how much we're fitting in therechainβ should this TRB be chained to the next? yes/no moment fr frnodeβ 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 π:
dwc3_gadget_set_test_mode(9)dwc3_gadget_get_link_state(9)dwc3_gadget_set_link_state(9)dwc3_ep_inc_trb(9)dwc3_ep_inc_enq(9)dwc3_ep_inc_deq(9)dwc3_gadget_giveback(9)dwc3_send_gadget_generic_command(9)dwc3_send_gadget_ep_cmd(9)dwc3_gadget_start_config(9)dwc3_gadget_calc_tx_fifo_size(9)dwc3_gadget_calc_ram_depth(9)dwc3_gadget_clear_tx_fifos(9)__dwc3_gadget_ep_enable(9)__dwc3_gadget_ep_disable(9)dwc3_ep_prev_trb(9)dwc3_prepare_last_sg(9)__dwc3_stop_active_transfer(9)dwc3_gadget_start_isoc_quirk(9)dwc3_gadget_setup_nump(9)dwc3_gadget_check_config(9)dwc3_gadget_init(9)
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
- 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