dwc3_gadget_check_config(9)
πΈ dwc3_gadget_check_config(9) πΈ
okay so you're in the Kernel API Manual, bestie, and this is the page for dwc3_gadget_check_config(9). It's giving βmake sure dwc3 can actually support the USB configurationβ energy β¨.
π¦ NAME π¦
dwc3_gadget_check_config β ensure dwc3 can support the USB configuration π
β¨ SYNOPSIS β¨
int dwc3_gadget_check_config (struct usb_gadget *g );
π ARGUMENTS π
gβ pointer to the USB gadget π«Ά
π« DESCRIPTION π«
So this function is the little record-keeper for the maximum number of endpoints being used in a USB composite device β and yes, that count is across all configurations π.
That number then gets used in the calculation of the TXFIFO sizes when resizing internal memory for individual endpoints. Basically it helps make sure the resizing logic reserves enough space for at least one max packet β no cap, that's the whole point π.
π SEE ALSO π
The kernel file is ./drivers/usb/dwc3/gadget.c, and the whole squad is here:
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_stop_active_transfer(9)dwc3_gadget_start_isoc_quirk(9)dwc3_gadget_setup_nump(9)dwc3_gadget_init(9)
mwah π this page is filed under ./drivers/usb/dwc3, dated October 2026, and it's dwc3_gadget_check_config(9) β bye bestie π«Ά
π¦ 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