summaryrefslogtreecommitdiffstats
path: root/include/drm/ttm
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2014-03-19 13:23:20 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2014-03-28 14:19:03 +0100
commit0d3215e3857ab679f74c9b26b7e711955c9d0438 (patch)
tree65f7255ca8ef0700b754a71a07bada5c5a89c0a2 /include/drm/ttm
parent6d10aab8f0658d624e5aafcd52b70afa23a75e5e (diff)
downloadop-kernel-dev-0d3215e3857ab679f74c9b26b7e711955c9d0438.zip
op-kernel-dev-0d3215e3857ab679f74c9b26b7e711955c9d0438.tar.gz
drm/ttm: Add a ttm_ref_object_exists function
A function to be used to check whether a caller has put a ref object (opened) a struct ttm_base_object Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'include/drm/ttm')
-rw-r--r--include/drm/ttm/ttm_object.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_object.h b/include/drm/ttm/ttm_object.h
index 0097cc0..ed953f9 100644
--- a/include/drm/ttm/ttm_object.h
+++ b/include/drm/ttm/ttm_object.h
@@ -244,6 +244,10 @@ extern void ttm_base_object_unref(struct ttm_base_object **p_base);
extern int ttm_ref_object_add(struct ttm_object_file *tfile,
struct ttm_base_object *base,
enum ttm_ref_type ref_type, bool *existed);
+
+extern bool ttm_ref_object_exists(struct ttm_object_file *tfile,
+ struct ttm_base_object *base);
+
/**
* ttm_ref_object_base_unref
*
OpenPOWER on IntegriCloud