dwc3_gadget_start_config(9)
β¨ NAME β¨
dwc3_gadget_start_config β reset endpoint resources. Bestie, this page is from the Kernel API Manual, section (9), and the title is dwc3_gadget_start_config(9) β very demure, very endpoint-reset core. π
π οΈ SYNOPSIS π οΈ
int dwc3_gadget_start_config (struct dwc3 *dwc , unsigned int
resource_index );
π ARGUMENTS π
dwcβ pointer to the DWC3 context. That's the main character struct, iykyk.resource_indexβ theDEPSTARTCFG.XferRscIdxvalue. And bestie, it must be0or2.
β οΈ No cap:resource_indexhas to be0or2. Those are the only valid values on this page.
π DESCRIPTION π
Okay so this function is all about resetting endpoint resources, and the value you pass as resource_index changes the vibe:
- Set
resource_index=0to reset all endpoints' resources allocation. Do this as part of the power-on/soft-reset initialization. Very fresh-start energy. β¨ - Set
resource_index=2to reset only non-control endpoints' resources. Do this on receiving theSET_CONFIGURATIONrequest or hibernation resume. Selective reset, slay. π¦
π SEE ALSO π
The kernel file is ./drivers/usb/dwc3/gadget.c, and the related refs are:
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_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_stop_active_transfer(9)dwc3_gadget_start_isoc_quirk(9)dwc3_gadget_setup_nump(9)dwc3_gadget_check_config(9)dwc3_gadget_init(9)
π«Ά That's the whole page, bestie! Source/version vibe: ./drivers/usb/dwc3, from the Kernel API Manual, dated October 2026. Periodt. π
π¦ 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