tb_domain_di...ct_all_paths(9)
π©οΈ NAME
tb_domain_disconnect_all_paths β bestie, this is the one that disconnects all the paths for the domain. All of them. Every last one. π
(also hi, you're reading the Kernel API Manual, and the header up top is literally truncated to tb_domain_di...ct_all_paths(9) because apparently even manpages run out of room β iconic honestly π)
β¨ SYNOPSIS β¨
int tb_domain_disconnect_all_paths (struct tb *tb );
Yes the space before the ) is there in the original. We don't question the ancestors. π«Ά
π ARGUMENTS π
tbβ the domain whose paths are getting disconnected. That's it, that's the whole argument. She's a one-argument girlie and honestly? Respect. π
π DESCRIPTION π
Okay so here's the tea β β this function can be used to disconnect all paths (both PCIe and XDomain, cover both bases bestie) for the domain. Like, for example, in preparation for a host NVM firmware upgrade. That's the classic use case, that's the moment she was born for β¨
π¨ Real talk though: after this is called, the paths cannot be established without resetting the switch. No vibe check, no retry, no "wait try again." You reset the switch or you get nothing. Not me warning you twice π
π RETURN π
0in case of success π- a negative errno otherwise π
That's the whole return contract. Zero is the slay outcome, negative errno means something went sideways and the kernel is telling you about it in the most cryptic way possible (iykyk).
π¦ SEE ALSO π¦
Kernel file: ./drivers/thunderbolt/domain.c
The whole friend group π―ββοΈ:
tb_domain_alloc(9)tb_domain_add(9)tb_domain_remove(9)tb_domain_suspend_noirq(9)tb_domain_resume_noirq(9)tb_domain_disapprove_switch(9)tb_domain_approve_switch(9)tb_domain_approve_switch_key(9)tb_domain_challenge_switch_key(9)tb_domain_disconnect_pcie_paths(9)tb_domain_approve_xdomain_paths(9)tb_domain_disconnect_xdomain_paths(9)
okay that's the whole page, you ate that π
this lil drop came from ./drivers/thunderbolt, dated October 2026, and the footer's still out here truncating it as tb_domain_di...ct_all_paths(9) β she's shy, she's mysterious, she's a kernel symbol. bye bestie, go reset that switch π§β¨
π¦ 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