tb_retimer_scan(9)
π 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'strue, 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 π₯
0on success β slay, we ate.- a negative
errnootherwise π that's the "it's giving error" case.
π SEE ALSO π
- Kernel file
./drivers/thunderbolt/retimer.cπ tb_retimer_nvm_read(9)β the related one, iykyktb_retimer_remove_all(9)β cleanup bestieβ¨
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms