tb_property_merge_dir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 that dir gets 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 behavior
  • replace β€” 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 πŸ‘‘

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