tb_property_create_dir(9)
β¨ tb_property_create_dir β¨
okay so bestie, welcome to the tb_property_create_dir(9) page from the Kernel API Manual π this is the little function that spins up a brand-new property directory, and honestly? it's giving "builder energy." let's get into it π
πΈ NAME πΈ
tb_property_create_dir β creates a new property directory β¨ (yes that's literally the whole job and she does it flawlessly)
π¦ SYNOPSIS π¦
struct tb_property_dir * tb_property_create_dir (const uuid_t *uuid );
π ARGUMENTS π
uuidβ the UUID that identifies this particular directory π it's the little name tag that says "hey, this dir is this dir." (and yes,uuidcan beNULL, but more on that in a sec π)
π§ DESCRIPTION π§
so the way this works: tb_property_create_dir creates a new, empty property directory. that's it, that's the vibe π
fresh out of the box, nothing in it yet, ready for you to fill her up.
but here's the plot twist β if uuid is NULL, then the directory is assumed to be the root directory π iykyk, no UUID needed when you're literally the top of the tree.
β RETURN β
she hands you back a pointer to struct tb_property_dir π«Ά and if things go sideways? you get NULL in case of failure π so like, always check your return value, bestie, no cap.
π SEE ALSO π
- Kernel file
./drivers/thunderbolt/property.c tb_property_parse_dir(9)tb_property_free_dir(9)tb_property_format_dir(9)tb_property_copy_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)
okay that's the whole page, you ate that ππ
this iconic little drop comes to you from ./drivers/thunderbolt, dated October 2026, and it's filed under tb_property_create_dir(9) β go forth and create directories, queen πβ¨
π¦ 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