tb_domain_approve_switch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to tb_domain_approve_switch(9) from the Kernel API Manual πŸ’– this one is literally called tb_domain_approve_switch β€” aka Approve switch β€” and yes, it’s giving β€œdo what it says on the tin” energy.


πŸ’… SYNOPSIS πŸ’…

int tb_domain_approve_switch (struct tb *tb , struct tb_switch *sw );

🫢 ARGUMENTS 🫢

  • tb β€” the domain the switch belongs to.
  • sw β€” the switch to approve.

✨ DESCRIPTION ✨

so the way this works is: tb_domain_approve_switch() approves the switch by connection-manager-specific means πŸ¦‹ and if that succeeds, the connection manager will create a PCIe tunnel from the parent to sw. slay, honestly.


πŸ’– RETURN πŸ’–

  • 0 on success ✨
  • a negative errno otherwise 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/thunderbolt/domain.c β€” the whole squad is here, no cap:


mwah πŸ’‹ this cutie comes from the ./drivers/thunderbolt source/version, dated October 2026, and it’s literally page tb_domain_approve_switch(9). periodt πŸŽ€

πŸ“¦ where this page comes from