tb_xdomain_request(9)
β¨ tb_xdomain_request(9) β¨
okay bestie, so this is a page straight out of the Kernel API Manual and it's literally about tb_xdomain_request β sending a XDomain request π
no cap, that's the whole vibe.
π NAME π
tb_xdomain_request β Send a XDomain request. That's it, that's the function π«Ά
πΈ SYNOPSIS πΈ
int tb_xdomain_request (struct tb_xdomain *xd , const void *request ,
size_t request_size , enum tb_cfg_pkg_type request_type , void *response
, size_t response_size , enum tb_cfg_pkg_type response_type , unsigned
int timeout_msec );
look at all those args, she's got range π
π¦ ARGUMENTS π¦
xdβ the XDomain you're sending the request to πrequestβ the actual request you're sending out into the world β¨request_sizeβ how big the request is, in bytes πrequest_typeβ the PDF type of the request (yes, PDF type, that's the term, don't come for me) πresponseβ the response gets copied in here, it's the designated landing spot πresponse_sizeβ the size you're expecting the response to be, in bytes πΈresponse_typeβ the expected PDF type of the response πtimeout_msecβ how long to wait for the response, in milliseconds β³
π DESCRIPTION π
so this function is your go-to for sending XDomain control channel messages over to the other domain π main character energy fr.
and here's the thing β she waits. The function just sits there, waiting until either the response shows up or the timeout triggers. Whichever comes first π it's giving patient queen.
β RETURN β
0 on success, and a negative errno otherwise π (iykyk, classic kernel behaviour)
π SEE ALSO π
hit up the Kernel file ./drivers/thunderbolt/xdomain.c and also literally all of these besties:
tb_xdomain_response(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_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)
ngl that's a LOT of cross-references but we stay reading ππ
and that's the whole page bestie, love that for you π§π
signed off with love from ./drivers/thunderbolt β¨ dated October 2026 π slay, go send some XDomain requests π¦
π¦ 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