From 25ddf1aeddfeee86b13cbd6ba6d9d1781a0ec73d Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Tue, 3 Sep 2013 13:49:55 -0700 Subject: video: tegra: nvmap: Export API for modules Export nvmap_ref_to_id() so that external modules can use this API. This is needed for in kernel unit testing of nvmap. Change-Id: I342a2f8b8d31251ca853a3efd0647e897408e811 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/269694 Reviewed-by: Krishna Reddy Tested-by: Krishna Reddy --- include/linux/nvmap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index b5c69ab17..e6bf69ffc 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h @@ -53,6 +53,7 @@ #define NVMAP_HANDLE_ZEROED_PAGES (0x1ul << 5) struct nvmap_handle; +struct nvmap_handle_ref; #if defined(__KERNEL__) @@ -95,6 +96,8 @@ struct dma_buf *nvmap_dmabuf_export(struct nvmap_client *client, ulong user_id); struct dma_buf *nvmap_dmabuf_export_from_ref(struct nvmap_handle_ref *ref); +ulong nvmap_ref_to_id(struct nvmap_handle_ref *ref); + ulong nvmap_ref_to_user_id(struct nvmap_handle_ref *ref); ulong nvmap_dmabuf_to_user_id(struct dma_buf *dmabuf); -- cgit v1.2.2