tb_register_property_dir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tb_register_property_dir β€” Kernel API Manual ✨

okay bestie, welcome to the group chat πŸ’… this one's from the Kernel API Manual, and it's literally about telling the host "hey, here's a new property directory, come look πŸ‘€".


🌸 NAME 🌸

tb_register_property_dir β€” Register property directory to the host 🫢


⭐ SYNOPSIS ⭐

int tb_register_property_dir (const char *key , struct tb_property_dir
*dir );

like, that's the whole vibe. two args, one int coming back at you ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • key β€” the Key (name) of the directory you're adding, i.e. the label your new directory is gonna rock 🏷️
  • dir β€” the Directory to add. yes literally the thing itself πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” service drivers can use this function to add a new property directory to the host available properties. that's the whole point, no cap.

and then the iconic part: the other connected hosts get notified πŸ“£ so they can re-read properties of this host if they're interested. like, you're not forcing anyone to look, you're just being like "new drop just landed, iykyk πŸ’…". if they care, they re-read. if not, whatever, main character energy 🌈


πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰
  • negative errno otherwise 😭 (yeah, it's giving failure, but at least you get an errno to debug with)

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/thunderbolt/xdomain.c β€” go read the source, bestie, it's all there πŸ“–

and then the whole friend group of related calls, in order:


ngl, if you're registering stuff, you're probably gonna want tb_unregister_property_dir(9) too. balance, bestie 🧚

and that's the page!! πŸ’œ source lives over in ./drivers/thunderbolt, dated October 2026, and that's the sign-off β€” mwah, go ship it πŸ“βœ¨

πŸ“¦ where this page comes from