summaryrefslogtreecommitdiff
path: root/man/drm-memory.7.rst
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-10-03 19:54:50 +0200
committerSimon Ser <contact@emersion.fr>2021-10-06 09:03:21 +0200
commitdd3655ce73c6e905265cd677fdc53dc28376a290 (patch)
treef5988206a3806aaf93c38ac1f161fb7fcae1f779 /man/drm-memory.7.rst
parent751752d264fc78ddc7d749d03eeb47c67f93ff7b (diff)
downloaddrm-dd3655ce73c6e905265cd677fdc53dc28376a290.tar.gz
man: refer to drmCloseBufferHandle instead of DRM_IOCTL_GEM_CLOSE
This function in libdrm core wraps DRM_IOCTL_GEM_CLOSE. Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'man/drm-memory.7.rst')
-rw-r--r--man/drm-memory.7.rst17
1 files changed, 4 insertions, 13 deletions
diff --git a/man/drm-memory.7.rst b/man/drm-memory.7.rst
index c272c994..7d09eeb1 100644
--- a/man/drm-memory.7.rst
+++ b/man/drm-memory.7.rst
@@ -169,19 +169,10 @@ rendering, cursors and CPU-access. See the libgbm library for more information
or look at the driver-dependent man-pages (for example **drm-intel**\ (7) or
**drm-radeon**\ (7)).
-GEM-buffers can be closed with the ``DRM_IOCTL_GEM_CLOSE`` ioctl. It takes as
-argument a structure of type ``struct drm_gem_close``:
-
-::
-
- struct drm_gem_close {
- __u32 handle;
- __u32 pad;
- };
-
-The *handle* field is the GEM-handle to be closed. The *pad* field is unused
-padding. It must be zeroed. After this call the GEM handle cannot be used by
-this process anymore and may be reused for new GEM objects by the GEM API.
+GEM-buffers can be closed with **drmCloseBufferHandle**\ (3). It takes as
+argument the GEM-handle to be closed. After this call the GEM handle cannot be
+used by this process anymore and may be reused for new GEM objects by the GEM
+API.
If you want to share GEM-objects between different processes, you can create a
name for them and pass this name to other processes which can then open this