upstream: [media] videobuf2: Add support for file access mode flags for DMABUF exporting
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 21 May 2013 08:11:35 +0000 (05:11 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:18 +0000 (11:52 +0900)
commit8906cc3e65376cb29d43071cf23609e45c7d17f3
tree33d8431ea98a53e021ad692bd68fe5ef10b3f817
parent1260bad8e3d3c20f9cabf6310f01db20a0e67014
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>
Documentation/DocBook/media/v4l/vidioc-expbuf.xml
drivers/media/v4l2-core/videobuf2-core.c
drivers/media/v4l2-core/videobuf2-dma-contig.c
include/media/videobuf2-core.h