提交 f0b22ebe 编写于 作者: E Eric Blake

docs: tweak recent suspend API additions

* src/libvirt.c (virDomainPMSuspendForDuration): Clarify usage.
上级 e1eea747
...@@ -2435,14 +2435,17 @@ error: ...@@ -2435,14 +2435,17 @@ error:
/** /**
* virDomainPMSuspendForDuration: * virDomainPMSuspendForDuration:
* @dom: a domain object * @dom: a domain object
* @target: an OR'ed set of virNodeSuspendTarget * @target: a value from virNodeSuspendTarget
* @duration: currently unused, pass 0 * @duration: duration in seconds to suspend, or 0 for indefinite
* @flags: ditto * @flags: extra flags; not used yet, so callers should always pass 0
* *
* Attempt to suspend given domain. However, more * Attempt to have the guest enter the given @target power management
* states are supported than in virDomainSuspend. * suspension level. If @duration is non-zero, also schedule the guest to
* resume normal operation after that many seconds, if nothing else has
* resumed it earlier. Some hypervisors require that @duration be 0, for
* an indefinite suspension.
* *
* Dependent on hypervisor used, this may require * Dependent on hypervisor used, this may require a
* guest agent to be available, e.g. QEMU. * guest agent to be available, e.g. QEMU.
* *
* Returns: 0 on success, * Returns: 0 on success,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册