typec_partne...ster_altmode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– typec_partne...ster_altmode(9)

okay so bestie, welcome to the Kernel API Manual page for typec_partner_register_altmode β€” it's giving USB Type-C partner alternate-mode registration, and honestly the vibes are immaculate. periodt. ✨

🌸 NAME 🌸

typec_partner_register_altmode β€” Register USB Type-C Partner Alternate Mode

πŸŽ€ SYNOPSIS πŸŽ€

struct typec_altmode * typec_partner_register_altmode (struct
       typec_partner *partner , const struct typec_altmode_desc *desc );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • partner β€” USB Type-C Partner that supports the alternate mode. the device with the alt-mode tea. β˜•
  • desc β€” Description of the alternate mode. the little info card for the vibe. πŸ’…

✨ DESCRIPTION ✨

so this routine is literally used to register each alternate mode individually that partner has listed in response to the Discover SVIDs command. no bundling, no skipping, bestie. 🫢

the modes for a SVID listed in response to the Discover Modes command need to be listed in an array in desc. yes, an array β€” in desc β€” that's the whole assignment. πŸ“

it returns a handle to the alternate mode on success, or ERR_PTR on failure. so: success = handle, failure = ERR_PTR, and that's the plot. 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/usb/typec/class.c β€” and the entire squad is here, no cap:

mwah πŸ’‹ this page is brought to you by source/version ./drivers/usb/typec, dated October 2026. πŸ§šπŸ’œ

πŸ“¦ where this page comes from