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)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:54 +0000 (16:03 +0000)
commit1a9d0d7dcacdf8dec23c9d790219af24d76ac0f7
tree1b0f1422e8767bfc6430c2625d1ccc72334b4ec5
parentcb1e072f7d7fda115538975081b2c11bc2e4c70d
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