1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

util: Rename virResctrl to virResctrlInfo

This way later patches can add another structures with virResctrl
prefix without the meaning being even more confusing than it needs to
be.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2017-08-10 11:50:47 +02:00
parent 7c4b4f8905
commit a045317680
3 changed files with 7 additions and 7 deletions

View File

@ -148,7 +148,7 @@ struct _virCapsHostCacheBank {
virCacheType type; /* Data, Instruction or Unified */ virCacheType type; /* Data, Instruction or Unified */
virBitmapPtr cpus; /* All CPUs that share this bank */ virBitmapPtr cpus; /* All CPUs that share this bank */
size_t ncontrols; size_t ncontrols;
virResctrlPtr *controls; virResctrlInfoPtr *controls;
}; };
typedef struct _virCapsHost virCapsHost; typedef struct _virCapsHost virCapsHost;

View File

@ -59,7 +59,7 @@ int
virResctrlGetCacheInfo(unsigned int level, virResctrlGetCacheInfo(unsigned int level,
unsigned long long size, unsigned long long size,
virCacheType scope, virCacheType scope,
virResctrlPtr **controls, virResctrlInfoPtr **controls,
size_t *ncontrols) size_t *ncontrols)
{ {
int ret = -1; int ret = -1;
@ -69,7 +69,7 @@ virResctrlGetCacheInfo(unsigned int level,
char *type_upper = NULL; char *type_upper = NULL;
unsigned int bits = 0; unsigned int bits = 0;
unsigned int min_cbm_bits = 0; unsigned int min_cbm_bits = 0;
virResctrlPtr control; virResctrlInfoPtr control;
if (VIR_ALLOC(control) < 0) if (VIR_ALLOC(control) < 0)
goto cleanup; goto cleanup;

View File

@ -36,9 +36,9 @@ typedef enum {
VIR_ENUM_DECL(virCache); VIR_ENUM_DECL(virCache);
typedef struct _virResctrl virResctrl; typedef struct _virResctrlInfo virResctrlInfo;
typedef virResctrl *virResctrlPtr; typedef virResctrlInfo *virResctrlInfoPtr;
struct _virResctrl { struct _virResctrlInfo {
/* Smallest possible increase of the allocation size in bytes */ /* Smallest possible increase of the allocation size in bytes */
unsigned long long granularity; unsigned long long granularity;
/* Minimal allocatable size in bytes (if different from granularity) */ /* Minimal allocatable size in bytes (if different from granularity) */
@ -54,7 +54,7 @@ int
virResctrlGetCacheInfo(unsigned int level, virResctrlGetCacheInfo(unsigned int level,
unsigned long long size, unsigned long long size,
virCacheType scope, virCacheType scope,
virResctrlPtr **controls, virResctrlInfoPtr **controls,
size_t *ncontrols); size_t *ncontrols);
int int