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, 19 Feb 2024 11:32:51 +0000 (11:32 +0000)
commit9f76823e21d6982ea97f2c1cbc8718c31be4f8d4
tree0c80dacadbde0a293871c0747bd8d60dd76f4438
parent4f9e92ce314d27d3375f4200b9d48c08dc0515b3
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