aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSteve Sistare <steven.sistare@oracle.com>2025-07-02 14:58:47 -0700
committerCédric Le Goater <clg@redhat.com>2025-07-03 13:42:28 +0200
commit184053f04f6ad6b2950d4712063ffed43bb2720f (patch)
treeb2933e2deffd01347407091419ca29ca8d77cf2f /include
parentb9b389b9e0f08b207786d501b790dab9cb2c09de (diff)
downloadqemu-184053f04f6ad6b2950d4712063ffed43bb2720f.zip
qemu-184053f04f6ad6b2950d4712063ffed43bb2720f.tar.gz
qemu-184053f04f6ad6b2950d4712063ffed43bb2720f.tar.bz2
vfio/iommufd: add vfio_device_free_name
Define vfio_device_free_name to free the name created by vfio_device_get_name. A subsequent patch will do more there. No functional change. Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Link: https://lore.kernel.org/qemu-devel/1751493538-202042-11-git-send-email-steven.sistare@oracle.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/vfio/vfio-device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-device.h b/include/hw/vfio/vfio-device.h
index f503837..1901a35 100644
--- a/include/hw/vfio/vfio-device.h
+++ b/include/hw/vfio/vfio-device.h
@@ -279,6 +279,7 @@ int vfio_device_get_irq_info(VFIODevice *vbasedev, int index,
/* Returns 0 on success, or a negative errno. */
bool vfio_device_get_name(VFIODevice *vbasedev, Error **errp);
+void vfio_device_free_name(VFIODevice *vbasedev);
void vfio_device_set_fd(VFIODevice *vbasedev, const char *str, Error **errp);
void vfio_device_init(VFIODevice *vbasedev, int type, VFIODeviceOps *ops,
DeviceState *dev, bool ram_discard);