summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>2012-10-23 14:34:53 -0600
committerEric Blake <eblake@redhat.com>2012-10-23 18:46:47 -0600
commit2594a007509ef20e94636089e26237af7e862609 (patch)
treed528aaee64e85276e988d6e18d2374a823707ac6
parent4248becb86df45d87e6a641d19cbe29a8ef94cf5 (diff)
downloadlibvirt-python-split-2594a007509ef20e94636089e26237af7e862609.tar.gz
libvirt-python-split-2594a007509ef20e94636089e26237af7e862609.tar.xz
libvirt-python-split-2594a007509ef20e94636089e26237af7e862609.zip
virNodeGetCPUMap: Define public API.v1.0.0-rc1
Adding a new API to obtain information about the host node's present, online and offline CPUs. int virNodeGetCPUMap(virConnectPtr conn, unsigned char **cpumap, unsigned int *online, unsigned int flags); The function will return the number of CPUs present on the host or -1 on failure; If cpumap is non-NULL virNodeGetCPUMap will allocate an array containing a bit map representation of the online CPUs. It's the callers responsibility to deallocate cpumap using free(). If online is non-NULL, the variable pointed to will contain the number of online host node CPUs. The variable flags has been added to support future extensions and must be set to 0. Extend the driver structure by nodeGetCPUMap entry in support of the new API virNodeGetCPUMap. Added implementation of virNodeGetCPUMap to libvirt.c Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com> Signed-off-by: Eric Blake <eblake@redhat.com>
-rwxr-xr-xgenerator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/generator.py b/generator.py
index ced7e41..c76ff2a 100755
--- a/generator.py
+++ b/generator.py
@@ -429,6 +429,7 @@ skip_impl = (
'virConnectRegisterCloseCallback',
'virNodeGetMemoryParameters',
'virNodeSetMemoryParameters',
+ 'virNodeGetCPUMap',
)
qemu_skip_impl = (