tb_switch_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_switch_remove β€” the Kernel API Manual moment (section 9, obviously)

okay bestie, welcome to tb_switch_remove from the Kernel API Manual β€” yes we're in section 9, the big-kid kernel functions, and no I will not be normal about it πŸ’–


✨ NAME ✨

tb_switch_remove β€” Remove and release a switch 🫢


🌸 SYNOPSIS 🌸

void tb_switch_remove (struct tb_switch *sw );

that's it. that's the whole vibe. void, so it gives you nothing back β€” it just does πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • sw β€” the switch you want to remove, bestie. the one that's gotta go πŸ¦‹

⭐ DESCRIPTION ⭐

so here's the tea β˜• β€” this will remove the switch from the domain, and then it releases it after the last reference count drops to zero. so like, it's not gone-gone the second you call it, it's gone when everyone else stops holding hands with it 😭

and if there are switches connected below this switch, they will be removed as well. the whole lil family tree comes down with it, no cap 🌈 think main character energy but make it a cascade.

ngl, that second part is the important bit β€” it's not just this switch, it's everything hanging off it too πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./drivers/thunderbolt/switch.c, and it is surrounded by icons, iykyk. here's the full squad, everybody pulls up:

like, fifty-nine of them. fifty-nine!! 🧚 the whole friend group, obsessed πŸ”₯


and that's the page, bestie πŸ“ this lil gem comes to you straight out of ./drivers/thunderbolt, dated October 2026 β€” yeah, future-coded, we know πŸ’œ slay, bye πŸ‘‹βœ¨

πŸ“¦ where this page comes from