dma-buf: add get_dma_buf()
authorRob Clark <rob@ti.com>
Fri, 16 Mar 2012 16:04:41 +0000 (11:04 -0500)
committerSumit Semwal <sumit.semwal@ti.com>
Mon, 26 Mar 2012 06:02:40 +0000 (11:02 +0530)
commitf9a24d1ac9cb82baf5ec5efdb6580a9ce0bd5bfc
tree6dd135509fa938eb3c9f8adab6919110a6f01f2b
parent55c1c4ca23d0f2736ef7c219d0fb005323ff8ee0
dma-buf: add get_dma_buf()

Works in a similar way to get_file(), and is needed in cases such as
when the exporter needs to also keep a reference to the dmabuf (that
is later released with a dma_buf_put()), and possibly other similar
cases.

Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
include/linux/dma-buf.h