Skip to contentSkip to conversation

drm: Update docs around gem_free_object

PATCH In review Daniel Vetter 2 participants 2 messages Jul 18, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: Update docs around gem_free_object

Not all places correctly stated that gem_free_object_unlocked is the one to use.

---
 Documentation/gpu/drm-mm.rst         | 2 +-
 drivers/gpu/drm/drm_gem_cma_helper.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/gpu/drm-mm.rst +1 -1
index 9412798645c1..ce115caea06f 100644
@@ -191,7 +191,7 @@ acquired and release by :c:func:`calling drm_gem_object_get()` and
 holding the lock.
 
 When the last reference to a GEM object is released the GEM core calls
-the :c:type:`struct drm_driver <drm_driver>` gem_free_object
+the :c:type:`struct drm_driver <drm_driver>` gem_free_object_unlocked
 operation. That operation is mandatory for GEM-enabled drivers and must
 free the GEM object and all associated resources.
 
drivers/gpu/drm/drm_gem_cma_helper.c +1 -1
index bc28e7575254..275ab872b34f 100644
@@ -177,7 +177,7 @@ drm_gem_cma_create_with_handle(struct drm_file *file_priv,
  * This function frees the backing memory of the CMA GEM object, cleans up the
  * GEM object state and frees the memory used to store the object itself.
  * Drivers using the CMA helpers should set this as their
- * &drm_driver.gem_free_object callback.
+ * &drm_driver.gem_free_object_unlocked callback.
  */
 void drm_gem_cma_free_object(struct drm_gem_object *gem_obj)
 {
Signature · 6 lines
2.13.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel