tb_domain_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ’–

πŸ’– Source/version: ./drivers/thunderbolt, dated October 2026 β€” that's the cute sign-off, bestie, slay! πŸ’–

πŸ“¦ where this page comes from