dwc3_gadget_start_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the DEPSTARTCFG.XferRscIdx value. And bestie, it must be 0 or 2.
⚠️ No cap: resource_index has to be 0 or 2. 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=0 to reset all endpoints' resources allocation. Do this as part of the power-on/soft-reset initialization. Very fresh-start energy. ✨
  • Set resource_index=2 to reset only non-control endpoints' resources. Do this on receiving the SET_CONFIGURATION request or hibernation resume. Selective reset, slay. πŸ¦‹

πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file is ./drivers/usb/dwc3/gadget.c, and the related refs are:


🫢 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