tb_xdomain_request(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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