typec_register_partner(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to typec_register_partner(9) from the Kernel API Manual πŸ’… this page is literally about registering a USB Type-C Partner, and it’s giving main character energy fr.

typec_register_partner β€” Register a USB Type-C Partner 🫢


🌸 SYNOPSIS 🌸

struct typec_partner * typec_register_partner (struct typec_port *port ,
struct typec_partner_desc *desc );

πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” The USB Type-C Port the partner is connected to πŸ”Œ
  • desc β€” Description of the partner πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function registers a device for USB Type-C Partner described in desc. that’s the whole move, no cap ✨

Returns handle to the partner on success or ERR_PTR on failure. so yeah β€” success hands you a partner handle, failure gives you ERR_PTR πŸ’€


πŸ’œ SEE ALSO πŸ’œ

the kernel file is ./drivers/usb/typec/class.c, and here’s the whole friend group πŸ‘‘:


okay that’s the whole page πŸŽ€ source/version: ./drivers/usb/typec Β· date: October 2026 β€” bye bestie, ily, stay slaying those kernel docs πŸ’‹

πŸ“¦ where this page comes from