tb_property_merge_dir(9)
π tb_property_merge_dir(9) β the Kernel API Manual moment π
okay bestie, welcome to tb_property_merge_dir, straight out of the Kernel API Manual. this is the little function that takes one property directory and yeets it into another one. merging era β¨ let's get into it.
πΈ NAME πΈ
tb_property_merge_dir β literally merges a directory into its parent. that's the whole vibe, no cap.
π¦ SYNOPSIS π¦
int tb_property_merge_dir (struct tb_property_dir *parent , const struct
tb_property_dir *dir , bool replace );
π ARGUMENTS π
parentβ the directory thatdirgets merged into. she's the main character here, receiving everything πdirβ the directory that is getting merged. she's the one being folded in, iconic behaviorreplaceβ controls whether existing entries get replaced. yes/no energy π₯
β¨ DESCRIPTION β¨
so here's the tea: this merges dir into parent. both of them must have the same UUID β that's non-negotiable, fr fr. π«Ά
the properties sitting in dir will overwrite the overlapping properties inside parent, but only if replace is true. no true, no overwrite, that's the rule.
also important, bestie: the contents of dir are copied over. so if you don't need dir afterwards, you gotta release it by calling tb_property_free_dir. don't leave her hanging with a memory leak, i'm begging π
π SEE ALSO π
- Kernel file
./drivers/thunderbolt/property.c tb_property_parse_dir(9)tb_property_create_dir(9)tb_property_free_dir(9)tb_property_format_dir(9)tb_property_copy_dir(9)tb_property_add_immediate(9)tb_property_add_data(9)tb_property_add_text(9)tb_property_add_dir(9)tb_property_remove(9)tb_property_find(9)tb_property_get_next(9)
the whole friend group, honestly. go say hi π
okay that's the page!! this one lives under ./drivers/thunderbolt, and it's dated October 2026 in the Kernel API Manual β tb_property_merge_dir(9) signing off ππ§ mwah, go merge responsibly π
π¦ 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