usb4_port_retimer_is_last(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the usb4_port_retimer_is_last(9) page β€” yes, that's the title, and yes, it's from the Kernel API Manual. we're checking whether a retimer is the last on-board retimer. lowkey niche, highkey useful. πŸ’…

🌸 NAME 🌸

usb4_port_retimer_is_last β€” is the retimer last on-board retimer? literally the whole vibe: find out if the retimer at your index is the final one in the chain.

✨ SYNOPSIS ✨

int usb4_port_retimer_is_last (struct tb_port *port , u8 index );

that's the signature, bestie β€” don't touch the commas. 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the USB4 port. main character energy.
  • index β€” the retimer index. like, which retimer are we checking?

πŸ¦‹ RETURN πŸ¦‹

  • 1 β€” retimer at index is the last one (connected directly to the Type-C port). slay, it's the final girl. πŸ‘‘
  • 0 β€” retimer at index is not the last one. not the finale, bestie.
  • -ENODEV β€” retimer is not present. 😭 she's not here.
  • Negative errno β€” other failure occurred. πŸ’€ something else went wrong.

πŸ”₯ SEE ALSO πŸ”₯

the kernel file is ./drivers/thunderbolt/usb4.c, and here's the whole group chat of related functions:


mwah πŸ’‹ this page comes from ./drivers/thunderbolt, dated October 2026, in the Kernel API Manual β€” go check those retimers, bestie. 🫢

πŸ“¦ where this page comes from