typec_switch_put(9)
typec_switch_put(9) π
okay bestie, welcome to the Kernel API Manual side of the USB Type-C universe β this page is about typec_switch_put(9), and it's lowkey a tiny little icon. π
β¨ NAME β¨
typec_switch_put β release USB Type-C orientation switch π¦
πΈ SYNOPSIS πΈ
void typec_switch_put (struct typec_switch *sw );
π ARGUMENTS π
swβ the USB Type-C orientation switch. that's the main character right there. π
π DESCRIPTION π
okay so the whole entire job is: Decrement reference count for sw. that's it, that's the tea. β no cap β it's giving "release the USB Type-C orientation switch" energy, and the reference count for sw goes down by one. periodt. β¨
π SEE ALSO π
the kernel file is ./drivers/usb/typec/mux.c, and you should also go say hi to these besties:
fwnode_typec_switch_get(9)typec_switch_register(9)typec_switch_unregister(9)fwnode_typec_mux_get(9)typec_mux_put(9)typec_mux_register(9)typec_mux_unregister(9)
mwah π this page is from the Kernel API Manual, source ./drivers/usb/typec, dated October 2026 β slay and goodbye π«Άβ¨
π¦ 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