It is the only way to verify if the given dma-buf is exported by ION.
Change-Id: I7925e9f88e34f6ecd123a4178531fd237b807ffa
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
return 0;
}
-static const struct dma_buf_ops dma_buf_ops = {
+const struct dma_buf_ops ion_dma_buf_ops = {
.map_dma_buf = ion_map_dma_buf,
.unmap_dma_buf = ion_unmap_dma_buf,
.mmap = ion_mmap,
if (IS_ERR(buffer))
return ERR_CAST(buffer);
- exp_info.ops = &dma_buf_ops;
+ exp_info.ops = &ion_dma_buf_ops;
exp_info.size = buffer->size;
exp_info.flags = O_RDWR;
exp_info.priv = buffer;
#define ion_buffer_unprotect(priv) do { } while (0)
#endif
+extern const struct dma_buf_ops ion_dma_buf_ops;
+
struct ion_heap *ion_get_heap_by_name(const char *heap_name);
struct dma_buf *__ion_alloc(size_t len, unsigned int heap_id_mask,
unsigned int flags);