__dwc3_gadget_ep_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __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 πŸ‘‘


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