tb_retimer_scan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_retimer_scan β€” the kernel API manual, bestie edition ✨

okay so this page is tb_retimer_scan(9) and it lives in the Kernel API Manual πŸŽ€ yes we're in kernel-doc land, stay with me, it's gonna slay.


✨ NAME ✨

tb_retimer_scan β€” it literally scans for on-board retimers under a port πŸ¦‹ that's the whole vibe, no cap.


🌸 SYNOPSIS 🌸

int tb_retimer_scan (struct tb_port *port , bool add );

that's the signature, copy it exactly, don't be weird about it πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the USB4 port we're scanning πŸ” like, this is the spot.
  • add β€” if it's true, we also register the retimers we find πŸ‘‘ if it's false we just... look at them. respectfully. πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so first thing, it brings the sideband into a state where retimers can actually be accessed πŸ’« like it's setting the mood, getting the sideband ready for guests.

then it tries to enumerate the on-board retimers that are connected to port 🌈 that's the main character moment.

if add is set, the found retimers get registered as children of port 🫢 cute family tree, honestly.

and lowkey important: it does not scan for cable retimers for now πŸ’€ that's just not what we're doing today. periodt.

πŸ”₯ RETURN πŸ”₯

  • 0 on success ⭐ slay, we ate.
  • a negative errno otherwise 😭 that's the "it's giving error" case.

πŸ’œ SEE ALSO πŸ’œ


and that's the page, no notes πŸ’…

this beauty came out of ./drivers/thunderbolt, dated October 2026 🌸 go off, kernel docs, we love to see it πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from