typec_altmode_exit(9)
π typec_altmode_exit(9) β bestie's guide to saying bye to an alternate mode
okay so real talk, this page lives in the Kernel API Manual and it's literally your cheat sheet for the "we're so done here" moment of USB Type-C alternate modes β¨
πΈ SYNOPSIS πΈ
int typec_altmode_exit (struct typec_altmode *adev );
that's it. one function, one arg, and it hands you back an int like it's no big deal π
π¦ ARGUMENTS π¦
adevβ The alternate mode π like, the actual alternate mode we're exiting, the main character of this whole story.
π DESCRIPTION π
so here's the vibe check: the partner of adev has initiated the Exit Mode command. that's the whole plot π«Ά The other side of the connection said "we're leaving" and this is the function that deals with it. not me being obsessed with how clean that is.
no cap, that's genuinely all it says β the partner initiated Exit Mode, and adev is the mode in question. periodt π
π₯ SEE ALSO π₯
all the sibling functions, because the kernel file ./drivers/usb/typec/bus.c is a whole friend group and you should meet everyone π
typec_altmode_notify(9)typec_altmode_enter(9)typec_altmode_attention(9)typec_altmode_vdm(9)typec_cable_altmode_enter(9)typec_cable_altmode_exit(9)typec_cable_altmode_vdm(9)typec_altmode_get_plug(9)typec_altmode_put_plug(9)typec_match_altmode(9)
(and yeah, the Kernel file genuinely is ./drivers/usb/typec/bus.c β go say hi π)
π reminder bestie:typec_altmode_exitis the exit one. if you're looking for the "we're entering the mode" energy, that'stypec_altmode_enter(9). don't mix them up, iykyk.
and that's the page! brought to you by ./drivers/usb/typec, dated October 2026 β mwah, go forth and exit modes responsibly π§π
π¦ 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