typec_cable_altmode_vdm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… typec_cable_altmode_vdm(9) πŸ’…

okay bestie, welcome to the typec_cable_altmode_vdm page from the Kernel API Manual β€” yes it's a kernel function, no it's not scary, i promise 🫢

🌸 NAME 🌸

typec_cable_altmode_vdm β€” the glow-up function that sends Vendor Defined Messages (VDM) between the cable plug and the port ✨


πŸ”₯ SYNOPSIS πŸ”₯

int typec_cable_altmode_vdm (struct typec_altmode *adev , enum
typec_plug_index sop , const u32 header , const u32 *vdo , int count );

like literally that's the whole signature, no cap πŸ’€

πŸŽ€ ARGUMENTS πŸŽ€

  • adev β€” the Alternate mode handle πŸ’– your main character pointer
  • sop β€” Cable plug target for VDM πŸ¦‹ (type is enum typec_plug_index, slay)
  • header β€” the VDM Header πŸ‘‘
  • vdo β€” Array of Vendor Defined Data Objects ⭐ (it's a const u32 *, so it's giving read-only energy)
  • count β€” Number of Data Objects πŸ“

✨ DESCRIPTION ✨

so here's the vibe: the alternate mode drivers use this function for SVID specific communication with the cable plugs πŸ’… yeah, SVID specific, that's the whole point.

and the port drivers? they use it to deliver the Structured VDMs received from the cable plugs to the alternate mode drivers πŸ“¬ like a lil delivery service but for structured vendor defined messages, iykyk.

ngl that's it β€” two jobs, one function, iconic behavior 🧚

🌈 SEE ALSO 🌈

all the siblings fr fr, go read them too πŸ”₯


and that's the page bestie!! πŸ’œ brought to you by ./drivers/usb/typec, dated October 2026 β€” periodt, go forth and send those VDMs πŸŒΈπŸŽ€

πŸ“¦ where this page comes from