mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:03:49 +03:00
lxc_fuse: Move virLXCMeminfo struct into lxc_cgroup.h
The function that fills virLXCMeminfo struct (virLXCCgroupGetMeminfo()) lives in lxc_cgroup.h. Move the struct there too. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
2cf223b261
commit
2cbe2f0960
@ -35,6 +35,19 @@ int virLXCCgroupSetup(virDomainDef *def,
|
||||
virCgroup *cgroup,
|
||||
virBitmap *nodemask);
|
||||
|
||||
struct virLXCMeminfo {
|
||||
unsigned long long memtotal;
|
||||
unsigned long long memusage;
|
||||
unsigned long long cached;
|
||||
unsigned long long active_anon;
|
||||
unsigned long long inactive_anon;
|
||||
unsigned long long active_file;
|
||||
unsigned long long inactive_file;
|
||||
unsigned long long unevictable;
|
||||
unsigned long long swaptotal;
|
||||
unsigned long long swapusage;
|
||||
};
|
||||
|
||||
int virLXCCgroupGetMeminfo(struct virLXCMeminfo *meminfo);
|
||||
|
||||
int
|
||||
|
@ -28,19 +28,6 @@
|
||||
|
||||
#include "lxc_conf.h"
|
||||
|
||||
struct virLXCMeminfo {
|
||||
unsigned long long memtotal;
|
||||
unsigned long long memusage;
|
||||
unsigned long long cached;
|
||||
unsigned long long active_anon;
|
||||
unsigned long long inactive_anon;
|
||||
unsigned long long active_file;
|
||||
unsigned long long inactive_file;
|
||||
unsigned long long unevictable;
|
||||
unsigned long long swaptotal;
|
||||
unsigned long long swapusage;
|
||||
};
|
||||
|
||||
typedef struct virLXCFuse virLXCFuse;
|
||||
|
||||
int lxcSetupFuse(struct virLXCFuse **f, virDomainDef *def);
|
||||
|
Loading…
x
Reference in New Issue
Block a user