typec_cable_altmode_exit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 an enum 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:

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