提交 a0453176 编写于 作者: M Martin Kletzander

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: NMartin Kletzander <mkletzan@redhat.com>
上级 7c4b4f89
......@@ -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;
......
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册