tb_domain_alloc(9)
πΈ NAME πΈ
tb_domain_alloc(9) β from the Kernel API Manual β is the βAllocate a domainβ function, bestie. That's the whole name vibe: it allocates a domain. π
β¨
π¦ SYNOPSIS π¦
struct tb * tb_domain_alloc (struct tb_nhi *nhi , int timeout_msec ,
size_t privsize );
π ARGUMENTS π
nhiβ pointer to the host controller. Literally the host-controller pointer, no cap. π«Άtimeout_msecβ the control channel timeout for non-raw messages. Exact scope, exact vibe. β±οΈprivsizeβ size of the connection manager private data. It's giving βhow big is the private data,β periodt. π
β¨ DESCRIPTION β¨
This one allocates and initializes a new Thunderbolt domain. β¨ Connection managers are expected to call this and then fill in cm_ops accordingly β that's the follow-up step, iykyk. π«Ά
Bestie caveat: call tb_domain_put to release the domain before it has been added to the system. Do not skip this, fr fr. π
π RETURN π
Pointer to struct tb, or NULL in case of error. That's the whole return glow-up β pointer or NULL, no extra lore. π
π¦ SEE ALSO π¦
Kernel file: ./drivers/thunderbolt/domain.c π
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_approve_switch_key(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)
π Source/version: ./drivers/thunderbolt, dated October 2026 β that's the cute sign-off, bestie, slay! π
π¦ 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