mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
nodeinfo: Rename nodeGetCPUBitmap() to nodeGetOnlineCPUBitmap()
The new name makes it clear that the returned bitmap contains the information about which CPUs are online, not eg. which CPUs are present. No behavioral change.
This commit is contained in:
parent
ccd0ea7ef5
commit
c1df42d734
@ -1000,7 +1000,6 @@ virLockManagerRelease;
|
||||
nodeAllocPages;
|
||||
nodeCapsInitNUMA;
|
||||
nodeGetCellsFreeMemory;
|
||||
nodeGetCPUBitmap;
|
||||
nodeGetCPUCount;
|
||||
nodeGetCPUMap;
|
||||
nodeGetCPUStats;
|
||||
@ -1009,6 +1008,7 @@ nodeGetInfo;
|
||||
nodeGetMemory;
|
||||
nodeGetMemoryParameters;
|
||||
nodeGetMemoryStats;
|
||||
nodeGetOnlineCPUBitmap;
|
||||
nodeGetPresentCPUBitmap;
|
||||
nodeSetMemoryParameters;
|
||||
|
||||
|
@ -1325,7 +1325,7 @@ nodeGetPresentCPUBitmap(const char *sysfs_prefix ATTRIBUTE_UNUSED)
|
||||
}
|
||||
|
||||
virBitmapPtr
|
||||
nodeGetCPUBitmap(const char *sysfs_prefix ATTRIBUTE_UNUSED)
|
||||
nodeGetOnlineCPUBitmap(const char *sysfs_prefix ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifdef __linux__
|
||||
const char *prefix = sysfs_prefix ? sysfs_prefix : SYSFS_SYSTEM_PATH;
|
||||
@ -1370,7 +1370,7 @@ nodeGetCPUBitmap(const char *sysfs_prefix ATTRIBUTE_UNUSED)
|
||||
return cpumap;
|
||||
#else
|
||||
virReportError(VIR_ERR_NO_SUPPORT, "%s",
|
||||
_("node cpumap not implemented on this platform"));
|
||||
_("node online CPU map not implemented on this platform"));
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
@ -1692,7 +1692,7 @@ nodeGetCPUMap(const char *sysfs_prefix,
|
||||
if (!cpumap && !online)
|
||||
return nodeGetCPUCount(sysfs_prefix);
|
||||
|
||||
if (!(cpus = nodeGetCPUBitmap(sysfs_prefix)))
|
||||
if (!(cpus = nodeGetOnlineCPUBitmap(sysfs_prefix)))
|
||||
goto cleanup;
|
||||
|
||||
if (cpumap && virBitmapToData(cpus, cpumap, &dummy) < 0)
|
||||
|
@ -45,7 +45,7 @@ int nodeGetMemory(unsigned long long *mem,
|
||||
unsigned long long *freeMem);
|
||||
|
||||
virBitmapPtr nodeGetPresentCPUBitmap(const char *sysfs_prefix);
|
||||
virBitmapPtr nodeGetCPUBitmap(const char *sysfs_prefix);
|
||||
virBitmapPtr nodeGetOnlineCPUBitmap(const char *sysfs_prefix);
|
||||
int nodeGetCPUCount(const char *sysfs_prefix);
|
||||
|
||||
int nodeGetMemoryParameters(virTypedParameterPtr params,
|
||||
|
Loading…
x
Reference in New Issue
Block a user