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;
virResctrlGetCacheInfo(unsigned int level,
unsigned long long size,
virCacheType scope,
- virResctrlPtr **controls,
+ virResctrlInfoPtr **controls,
size_t *ncontrols)
{
int ret = -1;
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;
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) */
virResctrlGetCacheInfo(unsigned int level,
unsigned long long size,
virCacheType scope,
- virResctrlPtr **controls,
+ virResctrlInfoPtr **controls,
size_t *ncontrols);
int