summaryrefslogtreecommitdiff
path: root/include/linux/reservation.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-08-10 20:01:48 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-08-14 20:00:49 +0300
commit7faf952a3030d304334fe527be339b63e9e2745f (patch)
treeb683adcf0d77b936849899e06e7b6f0054a26faa /include/linux/reservation.h
parenteac99d4a2013d9e68d12d8a5695b221593d3aa8d (diff)
downloadlinux-7faf952a3030d304334fe527be339b63e9e2745f.tar.xz
dma-buf: add reservation_object_copy_fences (v2)
Allows us to copy all the fences in a reservation object to another one. v2: handle NULL src_list Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/1502384509-10465-2-git-send-email-alexander.deucher@amd.com
Diffstat (limited to 'include/linux/reservation.h')
-rw-r--r--include/linux/reservation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/reservation.h b/include/linux/reservation.h
index 156cfd330b66..21fc84d82d41 100644
--- a/include/linux/reservation.h
+++ b/include/linux/reservation.h
@@ -254,6 +254,9 @@ int reservation_object_get_fences_rcu(struct reservation_object *obj,
unsigned *pshared_count,
struct dma_fence ***pshared);
+int reservation_object_copy_fences(struct reservation_object *dst,
+ struct reservation_object *src);
+
long reservation_object_wait_timeout_rcu(struct reservation_object *obj,
bool wait_all, bool intr,
unsigned long timeout);