mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +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:
parent
7c4b4f8905
commit
a045317680
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user