tb_register_property_dir(9)
π 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 π₯
0on success π- negative
errnootherwise π (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:
tb_xdomain_response(9)tb_xdomain_request(9)tb_register_protocol_handler(9)tb_unregister_protocol_handler(9)tb_register_service_driver(9)tb_unregister_service_driver(9)tb_service_properties_changed(9)tb_xdomain_alloc(9)tb_xdomain_add(9)tb_xdomain_remove(9)tb_xdomain_unregister(9)tb_xdomain_lane_bonding_enable(9)tb_xdomain_lane_bonding_disable(9)tb_xdomain_alloc_in_hopid(9)tb_xdomain_alloc_out_hopid(9)tb_xdomain_release_in_hopid(9)tb_xdomain_release_out_hopid(9)tb_xdomain_enable_paths(9)tb_xdomain_disable_paths(9)tb_xdomain_find_by_uuid(9)tb_xdomain_find_by_link_depth(9)tb_xdomain_find_by_route(9)tb_unregister_property_dir(9)
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
- 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