[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 08/12] [v2] virNodeGetMemoryStats: Define internal driver API



virNodeGetMemoryStats: Define internal driver API

Signed-off-by: Minoru Usui <usui mxm nes nec co jp>
---
 src/driver.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/driver.h b/src/driver.h
index a39411b..6239123 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -379,6 +379,14 @@ typedef int
                      unsigned int flags);
 
 typedef int
+    (*virDrvNodeGetMemoryStats)
+                    (virConnectPtr conn,
+                     int cellNum,
+                     virMemoryStatsPtr params,
+                     int *nparams,
+                     unsigned int flags);
+
+typedef int
     (*virDrvNodeGetCellsFreeMemory)
                     (virConnectPtr conn,
                      unsigned long long *freeMems,
@@ -714,6 +722,7 @@ struct _virDriver {
     virDrvDomainMemoryPeek      domainMemoryPeek;
     virDrvDomainGetBlockInfo    domainGetBlockInfo;
     virDrvNodeGetCPUStats       nodeGetCPUStats;
+    virDrvNodeGetMemoryStats	nodeGetMemoryStats;
     virDrvNodeGetCellsFreeMemory	nodeGetCellsFreeMemory;
     virDrvNodeGetFreeMemory		nodeGetFreeMemory;
     virDrvDomainEventRegister         domainEventRegister;
-- 
1.7.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]