mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 16:15:23 +00:00
nodeinfo: Formatting changes
This commit is contained in:
parent
75f6f54546
commit
aa6c3fee86
@ -208,7 +208,7 @@ freebsdNodeGetCPUStats(int cpuNum,
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
freebsdNodeGetMemoryStats(virNodeMemoryStatsPtr params,
|
freebsdNodeGetMemoryStats(virNodeMemoryStatsPtr params,
|
||||||
int *nparams)
|
int *nparams)
|
||||||
{
|
{
|
||||||
size_t i, j = 0;
|
size_t i, j = 0;
|
||||||
unsigned long pagesize = getpagesize() >> 10;
|
unsigned long pagesize = getpagesize() >> 10;
|
||||||
@ -552,10 +552,11 @@ virNodeParseNode(const char *sysfs_prefix,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int linuxNodeInfoCPUPopulate(const char *sysfs_prefix,
|
int
|
||||||
FILE *cpuinfo,
|
linuxNodeInfoCPUPopulate(const char *sysfs_prefix,
|
||||||
virArch arch,
|
FILE *cpuinfo,
|
||||||
virNodeInfoPtr nodeinfo)
|
virArch arch,
|
||||||
|
virNodeInfoPtr nodeinfo)
|
||||||
{
|
{
|
||||||
const char *prefix = sysfs_prefix ? sysfs_prefix : SYSFS_SYSTEM_PATH;
|
const char *prefix = sysfs_prefix ? sysfs_prefix : SYSFS_SYSTEM_PATH;
|
||||||
char line[1024];
|
char line[1024];
|
||||||
@ -1046,8 +1047,9 @@ virNodeGetSiblingsList(const char *dir, int cpu_id)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int nodeGetInfo(const char *sysfs_prefix ATTRIBUTE_UNUSED,
|
int
|
||||||
virNodeInfoPtr nodeinfo)
|
nodeGetInfo(const char *sysfs_prefix ATTRIBUTE_UNUSED,
|
||||||
|
virNodeInfoPtr nodeinfo)
|
||||||
{
|
{
|
||||||
virArch hostarch = virArchFromHost();
|
virArch hostarch = virArchFromHost();
|
||||||
|
|
||||||
@ -1123,10 +1125,11 @@ int nodeGetInfo(const char *sysfs_prefix ATTRIBUTE_UNUSED,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int nodeGetCPUStats(int cpuNum ATTRIBUTE_UNUSED,
|
int
|
||||||
virNodeCPUStatsPtr params ATTRIBUTE_UNUSED,
|
nodeGetCPUStats(int cpuNum ATTRIBUTE_UNUSED,
|
||||||
int *nparams ATTRIBUTE_UNUSED,
|
virNodeCPUStatsPtr params ATTRIBUTE_UNUSED,
|
||||||
unsigned int flags)
|
int *nparams ATTRIBUTE_UNUSED,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
virCheckFlags(0, -1);
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
@ -1153,11 +1156,12 @@ int nodeGetCPUStats(int cpuNum ATTRIBUTE_UNUSED,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int nodeGetMemoryStats(const char *sysfs_prefix ATTRIBUTE_UNUSED,
|
int
|
||||||
int cellNum ATTRIBUTE_UNUSED,
|
nodeGetMemoryStats(const char *sysfs_prefix ATTRIBUTE_UNUSED,
|
||||||
virNodeMemoryStatsPtr params ATTRIBUTE_UNUSED,
|
int cellNum ATTRIBUTE_UNUSED,
|
||||||
int *nparams ATTRIBUTE_UNUSED,
|
virNodeMemoryStatsPtr params ATTRIBUTE_UNUSED,
|
||||||
unsigned int flags)
|
int *nparams ATTRIBUTE_UNUSED,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
virCheckFlags(0, -1);
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user