tb_sw_set_unplugged(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_sw_set_unplugged(9) β€” like, the whole vibe ✨

okay so bestie, welcome to the Kernel API Manual, section 9. This is the page for tb_sw_set_unplugged and honestly it's a short one, but that doesn't mean we're skipping anything. πŸŽ€


🌸 NAME 🌸

tb_sw_set_unplugged β€” sets is_unplugged on the switch and on all the downstream switches too 🫢

like, it's a chain reaction situation. one switch gets marked, the whole downstream fam gets marked. iconic.


✨ SYNOPSIS ✨

void tb_sw_set_unplugged (struct tb_switch *sw );

yep. that's the whole signature. void return, one argument, no notes. she's simple, she's efficient, she's that girl πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sw β€” the Router (a struct tb_switch *) that you're marking as unplugged. that's it. that's the argument. give her a switch and she'll flag it πŸ”₯
so like, this is a one-argument function and the description of that argument is literally "Router to mark unplugged". the manpage is not beating the minimalist allegations today ngl 😭 but we respect it.

πŸ’œ SEE ALSO πŸ’œ

okay this is where the page really pops off. grab a snack, because the cross-reference list is long and we are not skipping a single one, no cap. first up, the source file itself lives in ./drivers/thunderbolt/switch.c (that's the Kernel file πŸ“), and then:

like… the way this page has an entire friend group 😭 ports, switches, USB3, PCI, DP, hopids, lane bonding β€” everybody's here. it's giving networking family reunion 🧚


🫢 reminder bestie: when a manpage says SEE ALSO, that's your "go read these next" list. every single one of those (9) pages is a real cross-reference, so if you're deep in Thunderbolt driver land, you now have a whole reading list. slay.

πŸŽ€ the cute little sign-off πŸŽ€

this page comes to you from ./drivers/thunderbolt (yep, that's the source/version bit, mwah) and it was dated October 2026 in the footer. so like, future-dated aesthetics, we love that for her. periodt. πŸ’–πŸŒˆβ­

stay unplugged-ish (but like, only the is_unplugged flag, not your actual hardware, bestie 😭πŸ”₯) β€” mwah πŸ’‹

πŸ“¦ where this page comes from