cdns_hw_role_state_machine(9)
π cdns_hw_role_state_machine(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's a lil shortie but she's iconic. it's cdns_hw_role_state_machine, and she's literally the role switch state machine based on hw events. no cap. π¦
π NAME π
cdns_hw_role_state_machine β role switch state machine based on hw events.
like, she reads the hardware tea and decides what role comes next. periodt. π
β¨ SYNOPSIS β¨
enum usb_role cdns_hw_role_state_machine (struct cdns *cdns );
πΈ ARGUMENTS πΈ
cdnsβ Pointer to controller structure. that's your controller struct bestie, she needs it π«Ά
π₯ DESCRIPTION π₯
Returns next role to be entered based on hw events.
that's it, that's the whole vibe β hw says something happens, this function tells you which role you're stepping into next. main character energy fr fr. π
π SEE ALSO π
Kernel file ./drivers/usb/cdns3/core.c, plus the whole friend group:
cdns_core_init_role(9)cdns_hw_role_switch(9)cdns_role_get(9)cdns_role_set(9)cdns_wakeup_irq(9)cdns_init(9)cdns_remove(9)
go say hi to all of them, iykyk π
ngl this one's a tiny page but she still ate. don't skip the SEE ALSO, the squad matters. β
okay bye bestie β this was cdns_hw_role_state_machine(9) from the Kernel API Manual, living in ./drivers/usb/cdns3, dated October 2026. mwah πππΈ
π¦ 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