drm/prime: proper locking+refcounting for obj->dma_buf link
[deliverable/linux.git] / include / drm / drmP.h
index 063eac31b97bec7d07b283cae0120d766e6271e7..a95db49b3f9e0cb63584ce066162878332635128 100644 (file)
@@ -667,8 +667,16 @@ struct drm_gem_object {
 
        void *driver_private;
 
-       /* dma buf exported from this GEM object */
-       struct dma_buf *export_dma_buf;
+       /**
+        * dma_buf - dma buf associated with this GEM object
+        *
+        * Pointer to the dma-buf associated with this gem object (either
+        * through importing or exporting). We break the resulting reference
+        * loop when the last gem handle for this object is released.
+        *
+        * Protected by obj->object_name_lock
+        */
+       struct dma_buf *dma_buf;
 
        /**
         * import_attach - dma buf attachment backing this object
This page took 0.023867 seconds and 5 git commands to generate.