From 2594a007509ef20e94636089e26237af7e862609 Mon Sep 17 00:00:00 2001 From: Viktor Mihajlovski Date: Tue, 23 Oct 2012 14:34:53 -0600 Subject: virNodeGetCPUMap: Define public API. 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 Signed-off-by: Eric Blake --- generator.py | 1 + 1 file changed, 1 insertion(+) 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 = ( -- cgit