dwc3_ep_prev_trb(9)
π dwc3_ep_prev_trb(9) π
okay bestie, welcome to the Kernel API Manual entry for dwc3_ep_prev_trb β the little function that walks the ring backwards and hands you the previous TRB. it's giving βrewind, but make it kernelβ energy πβ¨
β¨ NAME β¨
dwc3_ep_prev_trb β returns the previous TRB in the ring π«
πΈ SYNOPSIS πΈ
struct dwc3_trb * dwc3_ep_prev_trb (struct dwc3_ep *dep , u8 index );
π¦ ARGUMENTS π¦
depβ The endpoint with the TRB ring. yup, that endpoint. the one holding the ring. πindexβ The index of the current TRB in the ring. that's the spot you're starting from, bestie. π
π DESCRIPTION π
Returns the TRB prior to the one pointed to by the index. so it's literally handing you the one right before your current spot in the ring. π
If the index is 0, we will wrap backwards, skip the link TRB, and return the one just before that. no cap, it loops around, dodges the link TRB, and gives you the one just before it. iconic ring behavior, honestly. π
π SEE ALSO π
Kernel file ./drivers/usb/dwc3/gadget.c β and here's the whole linked-up squad, bestie:
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_prepare_one_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)
made with π from the source spot ./drivers/usb/dwc3, dated October 2026 β that's the cute little footer info, bestie. 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