tb_property_copy_dir(9)
π tb_property_copy_dir β the Kernel API Manual, bestie edition π¦
okay so real talk, this one lives in tb_property_copy_dir(9) and it does exactly one thing but it does it so well. Think of it as the ultimate dupe β it looks at a directory and goes "mine now" and gives you a whole separate copy. main character energy fr fr.
β¨ NAME β¨
tb_property_copy_dir β takes a deep copy of a directory. not a shallow little peek, a deep copy, meaning everything inside gets duplicated too. no shared vibes, no borrowed references. separate. independent. iconic π
πΈ SYNOPSIS πΈ
struct tb_property_dir * tb_property_copy_dir (const struct
tb_property_dir *dir );
π ARGUMENTS π
dirβ the directory you wanna copy. that's it. that's the whole ask. π«Ά
π DESCRIPTION π
so you call this, you get a fresh new struct tb_property_dir that's a full deep copy of dir. slay.
β οΈ but bestie listen β the resulting directory needs to be released by calling tb_property_free_dir. do NOT just leave it lying around. that's a memory leak and we don't do that here. clean up after yourself, it's giving responsible. π§Ήβ¨
π RETURN π
- returns a pointer to
struct tb_property_dirβ yay, you got your copy! π - returns
NULLin case of failure β π it happens, check your return value, no cap.
π¦ SEE ALSO π¦
Kernel file ./drivers/thunderbolt/property.c
and the whole friend group:
tb_property_parse_dir(9)tb_property_create_dir(9)tb_property_free_dir(9)tb_property_format_dir(9)tb_property_merge_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)
β and that's the tea, bestie! this page came to you straight outta ./drivers/thunderbolt, dated October 2026, and it's filed under the good ol' tb_property_copy_dir(9) name. go forth, deep copy responsibly, and remember to free your dirs. mwah ππ
π¦ 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