STRUCT TYPEC_DEVICE_ID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

hey bestie, welcome to the struct typec_device_id(9) page from the Kernel API Manual πŸ’… β€” this one is all about USB Type-C alternate mode identifiers. iconic little struct, fr fr.

πŸŽ€ SYNOPSIS πŸŽ€

okay so here’s the exact shape of the thing, no cap:

struct typec_device_id {
    __u16 svid;
    __u8 mode;
    kernel_ulong_t driver_data;
 };

πŸ¦‹ Members πŸ¦‹

these are the members, bestie, and yes they’re all important:

  • svid β€” Standard or Vendor ID. that’s the field’s whole job πŸ’–
  • mode β€” Mode index. literally the mode index ✨
  • driver_data β€” Driver specific data. driver-specific vibes only πŸŽ€

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/device-id/typec.h β€” go peek if you want the context, iykyk πŸ‘‘

that’s the whole page, bestie 🫢 source/version: ./include/linux/device-id, dated October 2026, for struct typec_device_id(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from