cdns_hw_role_state_machine(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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