mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Reviewed-by: Brian Paul <[email protected]>
This commit is contained in:
parent
6d10aab8f0
commit
0d3215e385
2 changed files with 50 additions and 0 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue