__dwc3_stop_active_transfer(9)
π
__dwc3_stop_active_transfer(9) π
okay bestie, welcome to the Kernel API Manual page for __dwc3_stop_active_transfer(9) β the function that stops the current active transfer. no cap, we're getting into it π
πΈ NAME πΈ
__dwc3_stop_active_transfer β stop the current active transfer β¨
π SYNOPSIS π
int __dwc3_stop_active_transfer (struct dwc3_ep *dep , bool force , bool
interrupt );
π¦ ARGUMENTS π¦
depβ isoc endpoint π«Άforceβ setforcermbit in the commandinterruptβ command complete interrupt after End Transfer command
π₯ DESCRIPTION π₯
okay so when setting force, the ForceRM bit will be set. In that case the controller won't update the TRB progress on command completion. It also won't clear the HWO bit in the TRB. The command will also not complete immediately in that case. like, that is the whole ForceRM situation, and it is lowkey important π
Older programming guide revisions recommended setting ForceRM to 1 when ending a transfer. Newer programming guide revisions now recommend keeping ForceRM cleared, and TRBs are properly updated on command completion. periodt β newer guide said keep it cleared, and the TRBs get updated properly when the command completes β¨
π SEE ALSO π
Kernel file ./drivers/usb/dwc3/gadget.c β and the whole bestie lineup is: 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_one_trb(9), dwc3_prepare_last_sg(9), dwc3_gadget_start_isoc_quirk(9), dwc3_gadget_setup_nump(9), dwc3_gadget_check_config(9), dwc3_gadget_init(9).
xoxo π source/version: ./drivers/usb/dwc3 Β· date: October 2026 Β· page: __dwc3_stop_active_transfer(9) β bye bestie, you ate this one π«Άπ
π¦ 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