XenevaOS
Loading...
Searching...
No Matches
virtio_dma_buf.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * dma-bufs for virtio exported objects
4 *
5 * Copyright (C) 2020 Google, Inc.
6 */
7
8#ifndef _LINUX_VIRTIO_DMA_BUF_H
9#define _LINUX_VIRTIO_DMA_BUF_H
10
11#include <linux/dma-buf.h>
12#include <linux/uuid.h>
13#include <linux/virtio.h>
14
25 struct dma_buf_attachment *attach);
26 int (*get_uuid)(struct dma_buf *dma_buf, uuid_t *uuid);
27};
28
30 struct dma_buf_attachment *attach);
31
33 (const struct dma_buf_export_info *exp_info);
36
37#endif /* _LINUX_VIRTIO_DMA_BUF_H */
Definition dma-buf.h:494
Definition dma-buf.h:517
Definition dma-buf.h:46
Definition dma-buf.h:303
Definition uuid.h:19
Definition virtio_dma_buf.h:22
int(* get_uuid)(struct dma_buf *dma_buf, uuid_t *uuid)
Definition virtio_dma_buf.h:26
int(* device_attach)(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)
Definition virtio_dma_buf.h:24
struct dma_buf_ops ops
Definition virtio_dma_buf.h:23
struct dma_buf * virtio_dma_buf_export(const struct dma_buf_export_info *exp_info)
int virtio_dma_buf_get_uuid(struct dma_buf *dma_buf, uuid_t *uuid)
int virtio_dma_buf_attach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)
bool is_virtio_dma_buf(struct dma_buf *dma_buf)