cdns_role_set(9)
π NAME π
Ok bestie, meet cdns_role_set(9) from the Kernel API Manual β sheβs here to set current role of controller π
β¨
πΈ SYNOPSIS πΈ
int cdns_role_set (struct usb_role_switch *sw , enum usb_role role );
π¦ ARGUMENTS π¦
swβ pointer to USB role switch structure π«Άroleβ the previous role. Handles below events:- Role switch for dual-role devices
USB_ROLE_GADGET <--> USB_ROLE_NONEfor peripheral-only devices
π₯ SEE ALSO π₯
- Kernel file:
./drivers/usb/cdns3/core.c cdns_core_init_role(9)cdns_hw_role_state_machine(9)cdns_hw_role_switch(9)cdns_role_get(9)cdns_wakeup_irq(9)cdns_init(9)cdns_remove(9)
Thatβs the whole vibe check, bestie: cdns_role_set(9) in the Kernel API Manual, straight from ./drivers/usb/cdns3, dated October 2026. Go set that role, icon πβ¨π
π¦ 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