__dwc3_gadget_ep_disable(9)
β¨ __dwc3_gadget_ep_disable β¨
okay so bestie, welcome to the Kernel API Manual π
this one's about __dwc3_gadget_ep_disable, and yes it's a double-underscore function, it's giving "internal, don't touch unless you know what you're doing" main character energy π
πΈ NAME πΈ
__dwc3_gadget_ep_disable β disables a hw endpoint π¦
β SYNOPSIS β
int __dwc3_gadget_ep_disable (struct dwc3_ep *dep );
literally that's it. one argument, one int coming back, no cap β¨
π ARGUMENTS π
depβ the endpoint to disable. that's the one, that's the victim, we're shutting her down π
π DESCRIPTION π
okay so here's the vibe: this function undoes what __dwc3_gadget_ep_enable did π₯ like full reverse uno card. it also removes requests which are currently being processed by the hardware and those which are not yet scheduled β so both the ones actively in flight and the ones still waiting in the queue? gone. bye. π
β οΈ Caller should take care of locking. fr fr, this one is on you, bestie β the function is not doing the locking for you, so lock before you call or you're gonna have a bad time π
π SEE ALSO π
Kernel file ./drivers/usb/dwc3/gadget.c, plus the whole friend group π
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_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)
and that's the whole page, slay π
β¨ this one ships from ./drivers/usb/dwc3, dated October 2026, in the Kernel API Manual β mwah, go disable some endpoints responsibly, 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