diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2007-11-14 12:08:49 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2007-11-14 12:08:49 +0000 |
commit | a09aae02dad075562f880fafaddd966f70342729 (patch) | |
tree | 2419d57165db80edd9d65f404d71360767bb17aa /libvirt/libvirt.mli | |
parent | bbbb071cc29af9bb70a7e5657c96ff4eb55662dd (diff) | |
download | virt-top-a09aae02dad075562f880fafaddd966f70342729.tar.gz virt-top-a09aae02dad075562f880fafaddd966f70342729.tar.xz virt-top-a09aae02dad075562f880fafaddd966f70342729.zip |
Added support for new API calls:
- virNodeGetFreeMemory
- virNodeGetCellsFreeMemory
Release of 0.3.3.1.
Diffstat (limited to 'libvirt/libvirt.mli')
-rw-r--r-- | libvirt/libvirt.mli | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libvirt/libvirt.mli b/libvirt/libvirt.mli index ffe21fb..73bfcb5 100644 --- a/libvirt/libvirt.mli +++ b/libvirt/libvirt.mli @@ -105,6 +105,22 @@ sig *) val get_node_info : [>`R] t -> node_info + val node_get_free_memory : [> `R] t -> int64 + (** + [node_get_free_memory conn] + returns the amount of free memory (not allocated to any guest) + in the machine. + *) + + val node_get_cells_free_memory : [> `R] t -> int -> int -> int64 array + (** + [node_get_cells_free_memory conn start max] + returns the amount of free memory on each NUMA cell in kilobytes. + [start] is the first cell for which we return free memory. + [max] is the maximum number of cells for which we return free memory. + Returns an array of up to [max] entries in length. + *) + val maxcpus_of_node_info : node_info -> int (** Calculate the total number of CPUs supported (but not necessarily active) in the host. |