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 */
virBitmapPtr cpus; /* All CPUs that share this bank */
size_t ncontrols;
virResctrlPtr *controls;
virResctrlInfoPtr *controls;
};
typedef struct _virCapsHost virCapsHost;

View File

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

View File

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