summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2013-05-21 05:11:35 -0300
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:52:18 +0900
commit8906cc3e65376cb29d43071cf23609e45c7d17f3 (patch)
tree33d8431ea98a53e021ad692bd68fe5ef10b3f817 /include/media
parent1260bad8e3d3c20f9cabf6310f01db20a0e67014 (diff)
downloadlinux-3.10-8906cc3e65376cb29d43071cf23609e45c7d17f3.tar.gz
linux-3.10-8906cc3e65376cb29d43071cf23609e45c7d17f3.tar.bz2
linux-3.10-8906cc3e65376cb29d43071cf23609e45c7d17f3.zip
upstream: [media] videobuf2: Add support for file access mode flags for DMABUF exporting
Currently it is not possible for userspace to map a DMABUF exported buffer with write permissions. This patch allows to also pass O_RDONLY/O_RDWR when exporting the buffer, so that userspace may map it with write permissions. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/videobuf2-core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h
index d06bd7ed459..f23a623f6dd 100644
--- a/include/media/videobuf2-core.h
+++ b/include/media/videobuf2-core.h
@@ -83,7 +83,7 @@ struct vb2_fileio_data;
struct vb2_mem_ops {
void *(*alloc)(void *alloc_ctx, unsigned long size, gfp_t gfp_flags);
void (*put)(void *buf_priv);
- struct dma_buf *(*get_dmabuf)(void *buf_priv);
+ struct dma_buf *(*get_dmabuf)(void *buf_priv, unsigned long flags);
void *(*get_userptr)(void *alloc_ctx, unsigned long vaddr,
unsigned long size, int write);