]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Enhance documentation of virDomainDetachDevice
authorJiri Denemark <jdenemar@redhat.com>
Wed, 25 Nov 2015 15:39:17 +0000 (16:39 +0100)
committerCole Robinson <crobinso@redhat.com>
Wed, 23 Dec 2015 23:31:03 +0000 (18:31 -0500)
Link it to virDomainDetachDeviceFlags.

https://bugzilla.redhat.com/show_bug.cgi?id=1257280

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
(cherry picked from commit 63fd27cfa35f39b32692b9c66e59c4d157ce8806)

src/libvirt-domain.c

index 5cd1ca6df7f5d2e532d803bbc4e029dae8eacfae..768994a78c75e0c6e47e0523a52b3c6ddd0e8c44 100644 (file)
@@ -8429,19 +8429,10 @@ virDomainAttachDeviceFlags(virDomainPtr domain,
  * @domain: pointer to domain object
  * @xml: pointer to XML description of one device
  *
- * Destroy a virtual device attachment to backend.  This function,
- * having hot-unplug semantics, is only allowed on an active domain.
+ * This is an equivalent of virDomainDetachDeviceFlags() when called with
+ * @flags parameter set to VIR_DOMAIN_AFFECT_LIVE.
  *
- * Be aware that hotplug changes might not persist across a domain going
- * into S4 state (also known as hibernation) unless you also modify the
- * persistent domain definition.
- *
- * The supplied XML description of the device should be as specific
- * as its definition in the domain XML. The set of attributes used
- * to match the device are internal to the drivers. Using a partial definition,
- * or attempting to detach a device that is not present in the domain XML,
- * but shares some specific attributes with one that is present,
- * may lead to unexpected results.
+ * See virDomainDetachDeviceFlags() for more details.
  *
  * Returns 0 in case of success, -1 in case of failure.
  */