diff options
| author | Thomas Hellstrom <thellstrom@vmware.com> | 2014-03-19 08:23:20 -0400 |
|---|---|---|
| committer | Thomas Hellstrom <thellstrom@vmware.com> | 2014-03-28 09:19:03 -0400 |
| commit | 0d3215e3857ab679f74c9b26b7e711955c9d0438 (patch) | |
| tree | 65f7255ca8ef0700b754a71a07bada5c5a89c0a2 /include/drm/ttm | |
| parent | 6d10aab8f0658d624e5aafcd52b70afa23a75e5e (diff) | |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_object.h b/include/drm/ttm/ttm_object.h index 0097cc03034e..ed953f98f0e1 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); | |||
| 244 | extern int ttm_ref_object_add(struct ttm_object_file *tfile, | 244 | extern int ttm_ref_object_add(struct ttm_object_file *tfile, |
| 245 | struct ttm_base_object *base, | 245 | struct ttm_base_object *base, |
| 246 | enum ttm_ref_type ref_type, bool *existed); | 246 | enum ttm_ref_type ref_type, bool *existed); |
| 247 | |||
| 248 | extern bool ttm_ref_object_exists(struct ttm_object_file *tfile, | ||
| 249 | struct ttm_base_object *base); | ||
| 250 | |||
| 247 | /** | 251 | /** |
| 248 | * ttm_ref_object_base_unref | 252 | * ttm_ref_object_base_unref |
| 249 | * | 253 | * |
