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>
Wed, 1 Jul 2020 15:32:51 +0000 (16:32 +0100)
commit72ad5835e225d092dc1f66248ff624dfba61282b
tree8e1c61d129e0368791c255896fab0f2583af8cab
parent3fdd2f7eec6aea039ed57c9eca52c53bbfaece39
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