0001
0002
0003
0004
0005
0006
0007
0008 #ifndef _LINUX_VIRTIO_DMA_BUF_H
0009 #define _LINUX_VIRTIO_DMA_BUF_H
0010
0011 #include <linux/dma-buf.h>
0012 #include <linux/uuid.h>
0013 #include <linux/virtio.h>
0014
0015
0016
0017
0018
0019
0020
0021
0022 struct virtio_dma_buf_ops {
0023 struct dma_buf_ops ops;
0024 int (*device_attach)(struct dma_buf *dma_buf,
0025 struct dma_buf_attachment *attach);
0026 int (*get_uuid)(struct dma_buf *dma_buf, uuid_t *uuid);
0027 };
0028
0029 int virtio_dma_buf_attach(struct dma_buf *dma_buf,
0030 struct dma_buf_attachment *attach);
0031
0032 struct dma_buf *virtio_dma_buf_export
0033 (const struct dma_buf_export_info *exp_info);
0034 bool is_virtio_dma_buf(struct dma_buf *dma_buf);
0035 int virtio_dma_buf_get_uuid(struct dma_buf *dma_buf, uuid_t *uuid);
0036
0037 #endif