media: videobuf2: Allow exporting of a struct dmabuf
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Mon, 29 Oct 2018 17:57:45 +0000 (17:57 +0000)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:14 +0000 (00:08 +0100)
commitf4d2776ad0df52ee5b7030898395dd5354bf4d31
tree12f1cbf11fe59ffa7b24e1b96732bc9c4f6994fe
parent33586072677b58c3838dbf9f30021f6d11f862c9
media: videobuf2: Allow exporting of a struct dmabuf

videobuf2 only allowed exporting a dmabuf as a file descriptor,
but there are instances where having the struct dma_buf is
useful within the kernel.

Split the current implementation into two, one step which
exports a struct dma_buf, and the second which converts that
into an fd.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/media/common/videobuf2/videobuf2-core.c
include/media/videobuf2-core.h