typec_unregister_cable(9)
π typec_unregister_cable β bestie's guide to yeeting a USB Type-C Cable
okay so this is a page from the Kernel API Manual, and it's literally the entire manual for typec_unregister_cable(9). short page, iconic energy, let's go π
β¨ NAME β¨
typec_unregister_cable β Unregister a USB Type-C Cable
like, you registered it, now you're unregistering it. character development π
πΈ SYNOPSIS πΈ
void typec_unregister_cable (struct typec_cable *cable );
no return value, no drama, just vibes and a pointer π¦
π ARGUMENTS π
cableβ the cable to be unregistered. yes bestie, that cable. the one you're sending off. π
π DESCRIPTION π
Unregister device created with typec_register_cable.
that's it. that's the whole description. it's giving "short and sweet, periodt" β¨ honestly the cleanest undo button in the whole Type-C saga β you made the device with typec_register_cable, so you take it back out with this one. big "no take-backs? actually yes take-backs" energy π
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/usb/typec/class.c and here is the whole group chat of related functions, all present and accounted for, no cap:
typec_altmode_update_active(9)typec_altmode2port(9)typec_altmode_set_ops(9)typec_unregister_altmode(9)typec_partner_set_usb_mode(9)typec_partner_set_identity(9)typec_partner_set_pd_revision(9)typec_partner_set_usb_power_delivery(9)typec_partner_set_num_altmodes(9)typec_partner_register_altmode(9)typec_partner_set_svdm_version(9)typec_partner_usb_power_delivery_register(9)typec_register_partner(9)typec_unregister_partner(9)typec_plug_set_num_altmodes(9)typec_plug_register_altmode(9)typec_register_plug(9)typec_unregister_plug(9)typec_cable_get(9)typec_cable_put(9)typec_cable_is_active(9)typec_cable_altmode_unsupported(9)typec_cable_set_identity(9)typec_register_cable(9)typec_port_set_usb_mode(9)typec_port_set_usb_power_delivery(9)typec_set_data_role(9)typec_get_data_role(9)typec_set_pwr_role(9)typec_set_vconn_role(9)typec_set_pwr_opmode(9)typec_find_pwr_opmode(9)typec_find_orientation(9)typec_find_port_power_role(9)typec_find_power_role(9)typec_find_port_data_role(9)typec_set_orientation(9)typec_get_orientation(9)typec_set_mode(9)typec_get_negotiated_svdm_version(9)typec_get_cable_svdm_version(9)typec_cable_set_svdm_version(9)typec_get_drvdata(9)typec_port_register_altmode(9)typec_port_register_cable_ops(9)typec_register_port(9)typec_unregister_port(9)
ngl this one is short but it's a whole mood: register it, unregister it, move on. slay π«Ά
source: ./drivers/usb/typec Β· version dated October 2026 β mwah, that's the whole page bestie, see u in the next manpage ππβ
π¦ 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