typec_cable_altmode_exit(9)
π
typec_cable_altmode_exit(9) β the "bye bye alternate mode" moment
okay so bestie, welcome to the Kernel API Manual β¨ (section 9, we're doing kernel functions today, very grown-up of us π). This one lives in the USB Type-C corner of the kernel and it's literally the "exit mode" button for a cable plug. Let's get into it π¦
πΈ NAME πΈ
typec_cable_altmode_exit β Exit Mode πβ¨
β SYNOPSIS β
int typec_cable_altmode_exit (struct typec_altmode *adev , enum
typec_plug_index sop );
yes, that's the whole signature, character for character, don't come for me π
π«Ά ARGUMENTS π«Ά
adevβ the alternate mode in question. THE alternate mode. main character energy πsopβ the cable plug you're targeting with the Exit Mode command. like, which plug? that plug π― (it's anenum typec_plug_index, so it's a plug index, iykyk)
π DESCRIPTION π
so the alternate mode drivers use this function to exit mode on the cable plug. that's it. that's the whole vibe. driver calls it, mode gets exited on the plug, everyone moves on with their lives π
ngl it's a tiny function but somebody's gotta do it π
π₯ SEE ALSO π₯
all the siblings, fr fr β they hang out in the kernel file ./drivers/usb/typec/bus.c:
typec_altmode_notify(9)typec_altmode_enter(9)typec_altmode_exit(9)typec_altmode_attention(9)typec_altmode_vdm(9)typec_cable_altmode_enter(9)typec_cable_altmode_vdm(9)typec_altmode_get_plug(9)typec_altmode_put_plug(9)typec_match_altmode(9)
go read them all, no cap, they're iconic together π
π that's the page!! brought to you by ./drivers/usb/typec, dated October 2026 β mwah, hope this slayed for you, bestie πβ¨π§
π¦ 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