diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2021-01-08 13:38:24 +0100 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2021-03-18 16:25:31 +0100 |
commit | 7d3084c0b77c6c417a16fc1c5bf3bc3149d20fab (patch) | |
tree | f0bb6a614b1a85b800b9547395a28d758dbbc4b2 /include | |
parent | thunderbolt: Align XDomain protocol timeouts with the spec (diff) | |
download | linux-7d3084c0b77c6c417a16fc1c5bf3bc3149d20fab.tar.xz linux-7d3084c0b77c6c417a16fc1c5bf3bc3149d20fab.zip |
thunderbolt: Add tb_property_copy_dir()
This function takes a deep copy of the properties. We need this in order
to support more dynamic properties per XDomain connection as required by
the USB4 inter-domain service spec.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/thunderbolt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/thunderbolt.h b/include/linux/thunderbolt.h index 7ec977161f5c..003a9ad29168 100644 --- a/include/linux/thunderbolt.h +++ b/include/linux/thunderbolt.h @@ -146,6 +146,7 @@ struct tb_property_dir *tb_property_parse_dir(const u32 *block, size_t block_len); ssize_t tb_property_format_dir(const struct tb_property_dir *dir, u32 *block, size_t block_len); +struct tb_property_dir *tb_property_copy_dir(const struct tb_property_dir *dir); struct tb_property_dir *tb_property_create_dir(const uuid_t *uuid); void tb_property_free_dir(struct tb_property_dir *dir); int tb_property_add_immediate(struct tb_property_dir *parent, const char *key, |