fwnode_usb_role_switch_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 fwnode_usb_role_switch_get(9) 🌸

okay bestie, this is the Kernel API Manual page for fwnode_usb_role_switch_get(9) β€” and it is lowkey iconic because it finds the USB role switch linked with the caller 🫢✨


πŸ’– NAME πŸ’–

fwnode_usb_role_switch_get β€” find USB role switch linked with the caller πŸ’… slay.

✨ SYNOPSIS ✨

struct usb_role_switch * fwnode_usb_role_switch_get (struct
       fwnode_handle *fwnode );

πŸŽ€ ARGUMENTS πŸŽ€

  • fwnode β€” the caller device node. that's the whole vibe check, bestie πŸ¦‹

🌈 DESCRIPTION 🌈

okay so this one is similar to the usb_role_switch_get function above (iykyk), but it searches the switch using fwnode instead of device entry. not me explaining it in one breath β€” it's literally just a different lookup path, periodt πŸ’«

πŸ”₯ SEE ALSO πŸ”₯

the Kernel file is ./drivers/usb/roles/class.c, and you should also peek at these icons:

kisses from the source/version line ./drivers/usb/roles, dated October 2026, signed fwnode_usb_role_switch_get(9) πŸ’–πŸ’…

πŸ“¦ where this page comes from