tb_domain_ap...e_switch_key(9)
π NAME π
ok so tb_domain_approve_switch_key β it approves a switch and adds the key, bestie β¨
this is the <pink>tb_domain_ap...e_switch_key(9)</pink> page from the Kernel API Manual, and we're gonna get through it together, no cap π«Ά
π¦ SYNOPSIS π¦
int tb_domain_approve_switch_key (struct tb *tb , struct tb_switch *sw );
like, it returns an int, and it takes two things. that's the whole vibe check π
πΈ ARGUMENTS πΈ
tbβ the Domain the switch belongs to π (it's the bigger picture, the container, the main character)swβ the Switch to approve β (this is the one getting the glow-up)
π DESCRIPTION π
okay so listen π β for switches that support secure connect, this function does two things, in order, and the order matters fr fr:
- it first adds the key to the switch NVM using connection manager specific means π
- if adding the key is successful, the switch is approved and connected β
the way that it's literally a "add the key, then approve" pipeline... iconic. it's giving two-step slay. but note the conditional, bestie: no successful key-add, no approval β periodt π
π RETURN π
0on success π₯³- negative errno in case of failure π
that's it. that's the return. simple, clean, no notes.
π§ SEE ALSO π§
Kernel file ./drivers/thunderbolt/domain.c π
and the whole friend group, in this exact order:
tb_domain_alloc(9)tb_domain_add(9)tb_domain_remove(9)tb_domain_suspend_noirq(9)tb_domain_resume_noirq(9)tb_domain_disapprove_switch(9)tb_domain_approve_switch(9)tb_domain_challenge_switch_key(9)tb_domain_disconnect_pcie_paths(9)tb_domain_approve_xdomain_paths(9)tb_domain_disconnect_xdomain_paths(9)tb_domain_disconnect_all_paths(9)
lowkey a whole squad of thunderbolt domain functions, and every single one of them is invited to the group chat π
and that's the page! sign-off time π«Ά this one lives in ./drivers/thunderbolt, dated October 2026, and it's the tb_domain_ap...e_switch_key(9) manual page β go forth and approve those switches, 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