usb_role_switch_unregister(9)
π usb_role_switch_unregister β straight out of the Kernel API Manual, bestie
okay so picture this: you registered a USB role switch, the job's done, and now you gotta clean up. this is that page. no cap.
πΈ NAME πΈ
usb_role_switch_unregister β the "Unregsiter USB Role Switch" girlies rise π«Ά (yes the manpage spells it Unregsiter, we love a typo with main character energy, and we're keeping it fr fr)
β¨ SYNOPSIS β¨
void usb_role_switch_unregister (struct usb_role_switch *sw );
π ARGUMENTS π
swβ the USB Role Switch. literally just the switch you're about to send off π
π¦ DESCRIPTION π¦
So here's the vibe: this unregisters a switch that was previously registered with usb_role_switch_register. that's it. that's the whole thing. it's giving cleanup arc, it's giving closing the loop, it's giving "we're so back" for your teardown path β¨
like⦠you registered it, now you unregister it. balanced. iconic. no notes.
β SEE ALSO β
Kernel file ./drivers/usb/roles/class.c β go read it, iykyk π
usb_role_switch_set_role(9)usb_role_switch_get_role(9)usb_role_switch_get(9)fwnode_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_set_drvdata(9)usb_role_switch_get_drvdata(9)
the whole little role-switch friend group honestly, they all ate π
lowkey reminder: this is the unregister half of theusb_role_switch_register/usb_role_switch_unregisterduo, so don't be out here unregistering stuff you never registered. that's not the vibe π
and that's the page!! brought to you by the folks over at ./drivers/usb/roles, dated October 2026 β stan them, they're doing the lord's work π§ π
π¦ 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