[PATCH 02/12] [v7] virNodeGetCPUStats: Define internal driver API

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

 



virNodeGetCPUStats: Define internal driver API

Signed-off-by: Minoru Usui <usui@xxxxxxxxxxxxxxxxx>
---
 src/driver.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/driver.h b/src/driver.h
index 5df798a..a39411b 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -371,6 +371,14 @@ typedef struct _virDriver virDriver;
 typedef virDriver *virDriverPtr;
 
 typedef int
+    (*virDrvNodeGetCPUStats)
+                    (virConnectPtr conn,
+                     int cpuNum,
+                     virCPUStatsPtr params,
+                     int *nparams,
+                     unsigned int flags);
+
+typedef int
     (*virDrvNodeGetCellsFreeMemory)
                     (virConnectPtr conn,
                      unsigned long long *freeMems,
@@ -705,6 +713,7 @@ struct _virDriver {
     virDrvDomainBlockPeek	domainBlockPeek;
     virDrvDomainMemoryPeek      domainMemoryPeek;
     virDrvDomainGetBlockInfo    domainGetBlockInfo;
+    virDrvNodeGetCPUStats       nodeGetCPUStats;
     virDrvNodeGetCellsFreeMemory	nodeGetCellsFreeMemory;
     virDrvNodeGetFreeMemory		nodeGetFreeMemory;
     virDrvDomainEventRegister         domainEventRegister;
-- 
1.7.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]