Lines Matching +full:uuid +full:- +full:dev

2  * Virtio Shared dma-buf
10 * See the COPYING file in the top-level directory.
16 #include "qemu/uuid.h"
31 * virtio_add_dmabuf() - Add a new dma-buf resource to the lookup table
32 * @uuid: new resource's UUID
33 * @dmabuf_fd: the dma-buf descriptor that will be stored and shared with
37 * Note: @dmabuf_fd must be a valid (non-negative) file descriptor.
39 * Return: true if the UUID did not exist and the resource has been added,
40 * false if another resource with the same UUID already existed.
41 * Note that if it finds a repeated UUID, the resource is not inserted in
44 bool virtio_add_dmabuf(QemuUUID *uuid, int dmabuf_fd);
47 * virtio_add_vhost_device() - Add a new exporter vhost device that holds the
48 * resource with the associated UUID
49 * @uuid: new resource's UUID
50 * @dev: the pointer to the vhost device that holds the resource. The caller
53 * Return: true if the UUID did not exist and the device has been tracked,
54 * false if another resource with the same UUID already existed.
55 * Note that if it finds a repeated UUID, the resource is not inserted in
58 bool virtio_add_vhost_device(QemuUUID *uuid, struct vhost_dev *dev);
61 * virtio_remove_resource() - Removes a resource from the lookup table
62 * @uuid: resource's UUID
64 * Return: true if the UUID has been found and removed from the lookup table.
66 bool virtio_remove_resource(const QemuUUID *uuid);
69 * virtio_lookup_dmabuf() - Looks for a dma-buf resource in the lookup table
70 * @uuid: resource's UUID
72 * Return: the dma-buf file descriptor integer, or -1 if the key is not found.
74 int virtio_lookup_dmabuf(const QemuUUID *uuid);
77 * virtio_lookup_vhost_device() - Looks for an exporter vhost device in the
79 * @uuid: resource's UUID
83 struct vhost_dev *virtio_lookup_vhost_device(const QemuUUID *uuid);
86 * virtio_object_type() - Looks for the type of resource in the lookup table
87 * @uuid: resource's UUID
89 * Return: the type of resource associated with the UUID, or TYPE_INVALID if
92 SharedObjectType virtio_object_type(const QemuUUID *uuid);
95 * virtio_free_resources() - Destroys all keys and values of the shared