tb_xdomain_disable_paths(9)
β¨ tb_xdomain_disable_paths β the Kernel API Manual glow-up β¨
okay so bestie, you know how tb_xdomain_enable_paths gets all the hype? this is its iconic counterpart, the function from the Thunderbolt kernel API docs (tb_xdomain_disable_paths(9)) that cleans up the DMA path situation when the party's over. π
πΈ NAME πΈ
tb_xdomain_disable_paths β Disable DMA paths for XDomain connection π
π¦ SYNOPSIS π¦
int tb_xdomain_disable_paths (struct tb_xdomain *xd , int transmit_path
, int transmit_ring , int receive_path , int receive_ring );
like, that's the whole signature, no cap β¨
π«Ά ARGUMENTS π«Ά
xdβ the XDomain connection, obvi πtransmit_pathβ the HopID we're using to send out packetstransmit_ringβ the DMA ring we use to send out packetsreceive_pathβ the HopID the other end is using to send packets to us (so it receives on our side, iykyk)receive_ringβ the DMA ring used to receive packets fromreceive_pathπ¦
π DESCRIPTION π
okay so basically: this does the literal opposite of tb_xdomain_enable_paths. π€
After you call this, the caller is not expected to use the rings anymore β like, they're closed, bestie, move on. π
Passing -1 as a path/ring parameter means "don't care" β yes, -1 is the universal vibe of "idk, whatever works". Normally though, callers should pass the same values here that they do when the paths are enabled, because consistency ate and left no crumbs. π₯
β RETURN β
0on success π- negative
errnootherwise π
π SEE ALSO π
Kernel file ./drivers/thunderbolt/xdomain.c, plus the whole squad:
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_add(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_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) π
ngl this whole page lives in./drivers/thunderbolt, and it's serving October 2026 energy from thetb_xdomain_disable_paths(9)volume β anyway, that's the tea, bestie, go disable those paths responsibly π§π
π¦ 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