tb_path_deactivate_hop(9)
π tb_path_deactivate_hop(9) β the Kernel API Manual, bestie edition π¦
okay so this is a page from the Kernel API Manual, and it's about tb_path_deactivate_hop, which is lowkey the "undo" button of Thunderbolt path config space. no cap, it's a whole vibe. let's get into it π
β¨ NAME β¨
tb_path_deactivate_hop β deactivate one path in path config space. that's it, that's the whole job, and she does it slayfully π
πΈ SYNOPSIS πΈ
int tb_path_deactivate_hop (struct tb_port *port , int hop_index );
yes bestie, copy it exactly like that, spaces and all. the compiler is watching π
π ARGUMENTS π
portβ a lane adapter or a protocol adapter. she's the one holding the door open for the operation π«Άhop_indexβ the HopID of the path that's gonna get cleared. literally the address of the thing we're yeeting π
β DESCRIPTION β
so here's the tea: this function deactivates β or, if you wanna be chill about it, clears β a single path config space entry sitting right at hop_index.
one entry. one hop. no drama, no collateral, no touching the other hops (they're main characters too, respect their space π ). it's giving "surgical little cleanup" and honestly? obsessed.
π₯ RETURN π₯
0on success β periodt, we ate π- a negative errno otherwise β meaning something went sideways and it's telling you in errno-speak π
π SEE ALSO π
don't leave her hanging, go read the whole friend group:
- Kernel file
./drivers/thunderbolt/path.c tb_path_discover(9)tb_path_alloc(9)tb_path_free(9)tb_path_activate(9)tb_path_is_invalid(9)tb_path_port_on_path(9)
π friendly reminder that 0 is the good one and negative errno is the "we need to talk" text. don't get it twisted.
okay that's the whole page!! and before you go β shoutout to ./drivers/thunderbolt, the source behind all this, dated October 2026, the manual that brought us here. mwah πβ¨π iykyk
π¦ 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