STRUCT TB_PROPERTY(9)
β¨ struct tb_property(9) β¨
okay so bestie, welcome to the struct tb_property glow-up π
this is a page from the Kernel API Manual, and it's all about the XDomain property β yes that's the NAME, and yes it's the whole vibe π¦
πΈ SYNOPSIS πΈ
Here's the whole struct, character for character, no cap β copy it exactly:
struct tb_property {
struct list_head list;
char key[TB_PROPERTY_KEY_SIZE + 1];
enum tb_property_type type;
size_t length;
union {
struct tb_property_dir *dir;
u8 *data;
char *text;
u32 immediate;
} value;
};
π Members π
listβ used to link properties together in a directory π it's giving "let's all hold hands" energy.keyβ the key for the property, and it's always terminated (the struct literally reservesTB_PROPERTY_KEY_SIZE + 1so it can be) β¨typeβ the type of the property. this is the main character for figuring out what's invalueπlengthβ length of the property data, measured in dwords (not bytes, bestie, dwords π)valueβ the property value itself, and it's a union of several possible shapes π«Ά
π Description π
here's the whole tea β: users check type to figure out which field inside value is the one that's actually filled. that's it, that's the system. vibe check passed β
π SEE ALSO π
Kernel file ./include/linux/thunderbolt.h, plus this whole friend group:
enum tb_security_level(9)struct tb(9)struct tb_property_dir(9)enum tb_link_width(9)struct tb_xdomain(9)struct tb_protocol_handler(9)struct tb_service(9)struct tb_service_driver(9)struct tb_nhi(9)struct tb_ring(9)enum ring_desc_flags(9)struct ring_frame(9)tb_ring_rx(9)tb_ring_tx(9)tb_ring_dma_device(9)
okay that's the page!! π§ sign-off time: this one lives in ./include/linux and it's dated October 2026 β iconic, obsessed, periodt ππ
π¦ 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