typec_cable_altmode_enter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… typec_cable_altmode_enter(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for typec_cable_altmode_enter(9) β€” she’s giving cable-plug alternate-mode realness and we’re gonna read her together, periodt. ✨


πŸŽ€ NAME πŸŽ€

  • typec_cable_altmode_enter β€” Enter Mode

🌸 SYNOPSIS 🌸

int typec_cable_altmode_enter (struct typec_altmode *adev , enum
       typec_plug_index sop , u32 *vdo );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • adev β€” the alternate mode. That’s the whole vibe check right there. πŸ’œ
  • sop β€” cable plug target for the Enter Mode command. Yes, that Enter Mode command.
  • vdo β€” VDO for the Enter Mode command. It’s typed u32 * in the signature, iykyk.

πŸ’– DESCRIPTION πŸ’–

Alternate mode drivers use this function to enter mode on the cable plug. No cap, that’s the job.

If the alternate mode does not require VDO, must be NULL for vdo. This is not a maybe β€” it’s a must. 🫢

lowkey important: the original says vdo must be NULL when the alternate mode doesn’t require VDO. Keep that energy. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/usb/typec/bus.c


cute sign-off bestie: source/version is ./drivers/usb/typec, date is October 2026, and the page is typec_cable_altmode_enter(9) β€” slay, you made it to the bottom πŸ’…πŸ’–

πŸ“¦ where this page comes from