aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHemant Hariyani2014-12-03 18:14:20 -0600
committerHemant Hariyani2014-12-04 00:32:40 -0600
commitb3ac4b3a8a10732a6360c8d9b896cbfc54ccf927 (patch)
treeee3e4176d42fef57395e412ed869992d60848f4c
parentb1da92efe6d989224c86b0e0e688a793059a54d7 (diff)
downloadlibdrm-b3ac4b3a8a10732a6360c8d9b896cbfc54ccf927.tar.gz
libdrm-b3ac4b3a8a10732a6360c8d9b896cbfc54ccf927.tar.xz
libdrm-b3ac4b3a8a10732a6360c8d9b896cbfc54ccf927.zip
libdrm: Add define for DRM_RDWR
mmap requires O_RDWR to be set if MAP_SHARED is requested with PROT_WRITE. Adding DRM_RDWR (defined as O_RDWR) as a valid flag that can be passed to DRM_IOCTL_PRIME_HANDLE_TO_FD for buffers that need required mapping. Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
-rw-r--r--include/drm/drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm.h b/include/drm/drm.h
index a847689f..3e5b9424 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -619,6 +619,7 @@ struct drm_get_cap {
619}; 619};
620 620
621#define DRM_CLOEXEC O_CLOEXEC 621#define DRM_CLOEXEC O_CLOEXEC
622#define DRM_RDWR O_RDWR
622struct drm_prime_handle { 623struct drm_prime_handle {
623 __u32 handle; 624 __u32 handle;
624 625