]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: monitor: Explain logic of qemuMonitorGetCPUInfo
authorPeter Krempa <pkrempa@redhat.com>
Thu, 29 Oct 2015 13:30:23 +0000 (14:30 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Nov 2015 12:55:35 +0000 (13:55 +0100)
The return value has non-obvious semantics. Document it.

src/qemu/qemu_monitor.c

index 50c6549377b5cefb5447f76b53f3a61619f785d9..cf7ecb6e398ac21fad567bc9226f180e963cc87f 100644 (file)
@@ -1606,6 +1606,15 @@ qemuMonitorSystemReset(qemuMonitorPtr mon)
 }
 
 
+/**
+ * qemuMonitorGetCPUInfo:
+ * @mon: monitor
+ * @pids: returned array of thread ids corresponding to the vCPUs
+ *
+ * Detects the vCPU thread ids. Returns count of detected vCPUs on success,
+ * 0 if qemu didn't report thread ids (does not report libvirt error),
+ * -1 on error (reports libvirt error).
+ */
 int
 qemuMonitorGetCPUInfo(qemuMonitorPtr mon,
                       int **pids)