[PATCH] docs: Use 'live' or 'lively' to describe the device events

Han Han hhan at redhat.com
Thu Nov 18 02:12:06 UTC 2021


The event of device added or removed only happens at live attachment or
detachment. Make the comments more explicit.

Signed-off-by: Han Han <hhan at redhat.com>
---
 include/libvirt/libvirt-domain.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
index 2f017c5b68..25ee06d0d6 100644
--- a/include/libvirt/libvirt-domain.h
+++ b/include/libvirt/libvirt-domain.h
@@ -4148,7 +4148,7 @@ typedef void (*virConnectDomainEventPMSuspendDiskCallback)(virConnectPtr conn,
  * @devAlias: device alias
  * @opaque: application specified data
  *
- * This callback occurs when a device is removed from the domain.
+ * This callback occurs when a device is lively removed from the domain.
  *
  * The callback signature to use when registering for an event of type
  * VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED with virConnectDomainEventRegisterAny()
@@ -4165,7 +4165,7 @@ typedef void (*virConnectDomainEventDeviceRemovedCallback)(virConnectPtr conn,
  * @devAlias: device alias
  * @opaque: application specified data
  *
- * This callback occurs when a device is added to the domain.
+ * This callback occurs when a device is lively added to the domain.
  *
  * The callback signature to use when registering for an event of type
  * VIR_DOMAIN_EVENT_ID_DEVICE_ADDED with virConnectDomainEventRegisterAny()
@@ -4183,7 +4183,7 @@ typedef void (*virConnectDomainEventDeviceAddedCallback)(virConnectPtr conn,
  * @devAlias: device alias
  * @opaque: application specified data
  *
- * This callback occurs when it's certain that removal of a device failed.
+ * This callback occurs when it's certain that live removal of a device failed.
  *
  * The callback signature to use when registering for an event of type
  * VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED with
-- 
2.33.1




More information about the libvir-list mailing list