cdns_drd_gadget_off(9)
π cdns_drd_gadget_off(9) β like, the whole Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual, and today's main character is cdns_drd_gadget_off β yes, that's the function name, and yes it's a whole vibe. It stops the gadget. That's it. That's the function. β¨
π¦ NAME
cdns_drd_gadget_off β stop gadget.
Literally what it says on the tin, no cap. π
πΈ SYNOPSIS
void cdns_drd_gadget_off (struct cdns *cdns );
Look at her. Void return, one arg, zero drama. Iconic. π
π ARGUMENTS
cdnsβ pointer to the controller context structure. So like, hand her the controller context struct and she'll do her thing. That's the whole ask. π«Ά
π§ SEE ALSO
The kernel file lives at ./drivers/usb/cdns3/drd.c, and here's the whole friend group β go say hi:
cdns_set_mode(9)cdns_otg_disable_irq(9)cdns_otg_enable_irq(9)cdns_drd_host_on(9)cdns_drd_host_off(9)cdns_drd_gadget_on(9)cdns_init_otg_mode(9)cdns_drd_update_mode(9)cdns_drd_irq(9)
iykyk, it's giving dual-role controller extended universe. πβ
fr fr nothing else to report β she stops the gadget, she's got one pointer to work with, and she's out. π
That's the whole page, bestie! Sourced from ./drivers/usb/cdns3, dated October 2026 β mwah, slay, 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