usb4_dp_port_set_cm_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… usb4_dp_port_set_cm_id β€” the Kernel API Manual ✨

okay so bestie, welcome to the usb4_dp_port_set_cm_id(9) page from the Kernel API Manual πŸŽ€ this one is short, sweet, and honestly iconic β€” we're giving a DisplayPort IN adapter its CM ID, no cap.


🌸 NAME 🌸

usb4_dp_port_set_cm_id β€” assign the CM ID to the DP IN adapter πŸ’…


✨ SYNOPSIS ✨

int usb4_dp_port_set_cm_id (struct tb_port *port , int cm_id );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • port β€” the DP IN adapter we're working with 🫢
  • cm_id β€” the CM ID you're assigning to it ✨

πŸ’– DESCRIPTION πŸ’–

so here's the whole vibe: it sets the CM ID for the port. that's it, that's the function. lowkey elegant, honestly. πŸ”₯


🌈 RETURN 🌈

  • 0 β€” on success, slay πŸ’…βœ¨
  • -EOPNOTSUPP β€” if the port doesn't support this, bestie, it's just not that girl πŸ™ˆ
  • Negative errno β€” another error happened, and yeah, that's a thing 😭

πŸ’œ SEE ALSO πŸ’œ

Kernel file: ./drivers/thunderbolt/usb4.c β€” and here's the whole friend group, fr fr:


ngl bestie, read the whole list or none of it β€” it's giving completionist energy and we respect that πŸ‘‘

okay that's the page!! this masterpiece lives in ./drivers/thunderbolt, version October 2026 πŸ—“οΈβœ¨ go forth and assign those CM IDs, you absolute icon πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from