tb_xdomain_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_xdomain_remove β€” the kernel API manual, bestie edition ✨

okay so we're in tb_xdomain_remove(9) territory today, and honestly? it's a little goodbye-coded but in a good way 🫢


🌸 NAME 🌸

tb_xdomain_remove β€” Remove XDomain. yes that's the whole job, she's a one-task queen πŸ‘‘


✨ SYNOPSIS ✨

void tb_xdomain_remove (struct tb_xdomain *xd );

no return value, no drama, just vibes and a pointer πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • xd β€” the XDomain to remove. that's the one getting the farewell tour πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: this function will stop all ongoing configuration work. like, everything currently in motion? paused, cancelled, done-zo ⭐

but β€” and this is the important part, don't skip it β€” the XDomain is not removed from the bus if it was added. nope. that's a whole separate errand, and you gotta do it yourself by calling tb_xdomain_unregister. literally cannot stress this enough 😭

🚨 also: this gets called with tb->lock held. so keep that lock held, bestie, or things get weird πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, no cap β€” kernel file ./drivers/thunderbolt/xdomain.c plus:

like I said. the whole group chat 🌈


πŸ’œ that's the page!! brought to you by ./drivers/thunderbolt, dated October 2026, and yes it's still tb_xdomain_remove(9) β€” same icon, same energy, mwah 🧚✨
πŸ“¦ where this page comes from