cdns_role_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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_NONE for peripheral-only devices

πŸ”₯ SEE ALSO πŸ”₯


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