typec_unregister_altmode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… typec_unregister_altmode(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ we're talking about the unregister-alt-mode function, and it's lowkey a clean little cleanup baddie. πŸŽ€

🌸 NAME 🌸

typec_unregister_altmode β€” Unregister Alternate Mode 🫢

✨ SYNOPSIS ✨

void typec_unregister_altmode (struct typec_altmode *adev );

🫢 ARGUMENTS 🫢

  • adev β€” the alternate mode to be unregistered. That's literally the whole vibe check for this argument, no cap. πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

So like, this one unregisters the device created with typec_partner_register_altmode, typec_plug_register_altmode or typec_port_register_altmode. The way that it's the undo button for an alt-mode device registration is iconic cleanup behavior, honestly. ✨

🌈 SEE ALSO 🌈

Kernel file: ./drivers/usb/typec/class.c β€” and bestie, the whole friend group is here:


that's the whole page, bestie πŸ’‹ β€” brought to you by source/version ./drivers/usb/typec and the date October 2026. mwah 🫢✨

πŸ“¦ where this page comes from