Some parts of nodeinfo.c are a mess. This series is a start of cleanup
effort on that file that should result also into tests being written
to test the nodeinfo code as it was shown to be fragile.
To avoid sending a huge series I will send it continuously as I progress.
Peter Krempa (4):
nodeinfo: Rename linuxNodeInfoCPUPopulate and export it properly
numa: Introduce virNumaIsAvailable and use it instead of
numa_available
nodeinfo: Avoid forward declarations of static functions
numa: Introduce virNumaGetMaxNode and use it instead of numa_max_node
src/libvirt_linux.syms | 2 +-
src/libvirt_private.syms | 2 +
src/nodeinfo.c | 173 +++++++++++++++++++++++------------------------
src/nodeinfo.h | 5 ++
src/util/virnuma.c | 51 ++++++++++++++
src/util/virnuma.h | 4 ++
tests/nodeinfotest.c | 6 +-
7 files changed, 148 insertions(+), 95 deletions(-)
--
1.8.3.2