fwnode_usb_role_switch_get(9)
πΈ 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:
usb_role_switch_set_role(9)usb_role_switch_get_role(9)usb_role_switch_get(9)usb_role_switch_put(9)usb_role_switch_find_by_fwnode(9)usb_role_switch_register(9)usb_role_switch_unregister(9)usb_role_switch_set_drvdata(9)usb_role_switch_get_drvdata(9)
kisses from the source/version line ./drivers/usb/roles, dated October 2026, signed fwnode_usb_role_switch_get(9) ππ
π¦ 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