tb_xdomain_add(9)
π tb_xdomain_add(9) π
okay so this is a page from the Kernel API Manual, and honestly? it's a whole vibe. it's about tb_xdomain_add β literally the glow-up moment where an XDomain gets added to the bus. let's get into it bestie π¦
β¨ NAME β¨
tb_xdomain_add β Add XDomain to the bus
like, that's it, that's the whole job. adding an XDomain to the bus. iconic behavior honestly π
πΈ SYNOPSIS πΈ
void tb_xdomain_add (struct tb_xdomain *xd );
no cap, that's the whole signature. void return, one argument, she's lowkey simple π
π ARGUMENTS π
xdβ the XDomain to add. that's the one. the main character of this whole function π«Ά
β DESCRIPTION β
okay so here's what actually goes down: this function starts the XDomain discovery protocol handshake, and eventually adds the XDomain to the bus. so the handshake happens, and if all goes well she lands on the bus π
and this is the part you CANNOT skip, bestie β after calling this function, the caller needs to call tb_xdomain_remove in order to remove and release the object, regardless of whether the handshake succeeded or not. like. even if the handshake flopped. even if it fully ate it. you still have to clean up. no exceptions π
β οΈ fr fr, do not forget the tb_xdomain_remove call. handshake success is not the vibe check here β the cleanup is mandatory either way, periodt.
π₯ SEE ALSO π₯
Kernel file ./drivers/thunderbolt/xdomain.c β that's the source file, go read her β¨
and then the whole friend group of related calls:
tb_xdomain_response(9)tb_xdomain_request(9)tb_register_protocol_handler(9)tb_unregister_protocol_handler(9)tb_register_service_driver(9)tb_unregister_service_driver(9)tb_service_properties_changed(9)tb_xdomain_alloc(9)tb_xdomain_remove(9)tb_xdomain_unregister(9)tb_xdomain_lane_bonding_enable(9)tb_xdomain_lane_bonding_disable(9)tb_xdomain_alloc_in_hopid(9)tb_xdomain_alloc_out_hopid(9)tb_xdomain_release_in_hopid(9)tb_xdomain_release_out_hopid(9)tb_xdomain_enable_paths(9)tb_xdomain_disable_paths(9)tb_xdomain_find_by_uuid(9)tb_xdomain_find_by_link_depth(9)tb_xdomain_find_by_route(9)tb_register_property_dir(9)tb_unregister_property_dir(9)
like, the whole squad. iykyk π
and that's the page!! this one lives under ./drivers/thunderbolt, and she's dated October 2026 π« mwah, go add your XDomains responsibly bestie π§π
π¦ 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