mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Enhance documentation of virDomainDetachDevice
Link it to virDomainDetachDeviceFlags. https://bugzilla.redhat.com/show_bug.cgi?id=1257280 Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
e7c6f45759
commit
63fd27cfa3
@ -8392,19 +8392,10 @@ virDomainAttachDeviceFlags(virDomainPtr domain,
|
|||||||
* @domain: pointer to domain object
|
* @domain: pointer to domain object
|
||||||
* @xml: pointer to XML description of one device
|
* @xml: pointer to XML description of one device
|
||||||
*
|
*
|
||||||
* Destroy a virtual device attachment to backend. This function,
|
* This is an equivalent of virDomainDetachDeviceFlags() when called with
|
||||||
* having hot-unplug semantics, is only allowed on an active domain.
|
* @flags parameter set to VIR_DOMAIN_AFFECT_LIVE.
|
||||||
*
|
*
|
||||||
* Be aware that hotplug changes might not persist across a domain going
|
* See virDomainDetachDeviceFlags() for more details.
|
||||||
* 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.
|
|
||||||
*
|
*
|
||||||
* Returns 0 in case of success, -1 in case of failure.
|
* Returns 0 in case of success, -1 in case of failure.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user