Skip to contentSkip to conversation

drm: re-add deleted doc for drm_gem_open_ioctl

PATCH Applied Steve Cohen 2 participants 2 messages Jul 29, 2020 – Jul 31, 2020

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

PATCH 1/1 drm: re-add deleted doc for drm_gem_open_ioctl

Add back the removed documentation for drm_gem_open_ioctl. This patch is submitted in response to [1].

[1] https://lore.kernel.org/linux-arm-msm/[email protected]/

---
 drivers/gpu/drm/drm_gem.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_gem.c +3 -0
index ee2058a..fe94122 100644
@@ -871,6 +871,9 @@ drm_gem_flink_ioctl(struct drm_device *dev, void *data,
  * @file_priv: drm file-private structure
  *
  * Open an object using the global name, returning a handle and the size.
+ *
+ * This handle (of course) holds a reference to the object, so the object
+ * will not go away until the handle is deleted.
  */
 int
 drm_gem_open_ioctl(struct drm_device *dev, void *data,
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#1 lore raw
Quoted 15 lines · Steve Cohen

Add back the removed documentation for drm_gem_open_ioctl. This patch is submitted in response to [1].

[1] https://lore.kernel.org/linux-arm-msm/[email protected]/

---
 drivers/gpu/drm/drm_gem.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_gem.c +0 -0
index ee2058a..fe94122 100644

drivers/gpu/drm/drm_gem.c drm_gem_flink_ioctl(struct drm_device *dev, void *data, · line 876

Quoted 6 lines
drivers/gpu/drm/drm_gem.c +3 -0
@@ -871,6 +871,9 @@ drm_gem_flink_ioctl(struct drm_device *dev, void *data,
  * @file_priv: drm file-private structure
  *
  * Open an object using the global name, returning a handle and the size.
+ *
+ * This handle (of course) holds a reference to the object, so the object
+ * will not go away until the handle is deleted.

Applied, thanks.
-Daniel

Quoted 7 lines
drivers/gpu/drm/drm_gem.c +0 -0
  */
 int
 drm_gem_open_ioctl(struct drm_device *dev, void *data,
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch