typec_register_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

typec_register_port β€” Register a USB Type-C Port πŸ‘‘ and yes bestie, this is typec_register_port(9) from the Kernel API Manual, so you know it's official ✨


πŸ“œ SYNOPSIS πŸ“œ

struct typec_port * typec_register_port (struct device *parent , const
       struct typec_capability *cap );

🧾 ARGUMENTS 🧾

  • parent β€” Parent device. That's the whole vibe 🫢
  • cap β€” Description of the port. Like the port's little intro card πŸ’…

πŸ’… DESCRIPTION πŸ’…

Okay so what this does: it registers a device for a USB Type-C Port described in cap. Slay πŸ’–

Then it returns a handle to the port on success, or ERR_PTR on failure. No cap, that's literally the deal β€” success gives you the handle, failure gives you ERR_PTR 😭


πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/usb/typec/class.c β€” yes, that's the one 🧚


xoxo, source vibes from ./drivers/usb/typec, dated October 2026 πŸŽ€πŸ’œ

πŸ“¦ where this page comes from