Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/balloon/balloon.c
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | struct balloon_stats { | ||||
unsigned long balloon_low; | unsigned long balloon_low; | ||||
unsigned long balloon_high; | unsigned long balloon_high; | ||||
}; | }; | ||||
static struct balloon_stats balloon_stats; | static struct balloon_stats balloon_stats; | ||||
#define bs balloon_stats | #define bs balloon_stats | ||||
SYSCTL_DECL(_dev_xen); | SYSCTL_DECL(_dev_xen); | ||||
static SYSCTL_NODE(_dev_xen, OID_AUTO, balloon, CTLFLAG_RD, NULL, "Balloon"); | static SYSCTL_NODE(_dev_xen, OID_AUTO, balloon, | ||||
CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, | |||||
"Balloon"); | |||||
SYSCTL_ULONG(_dev_xen_balloon, OID_AUTO, current, CTLFLAG_RD, | SYSCTL_ULONG(_dev_xen_balloon, OID_AUTO, current, CTLFLAG_RD, | ||||
&bs.current_pages, 0, "Current allocation"); | &bs.current_pages, 0, "Current allocation"); | ||||
SYSCTL_ULONG(_dev_xen_balloon, OID_AUTO, target, CTLFLAG_RD, | SYSCTL_ULONG(_dev_xen_balloon, OID_AUTO, target, CTLFLAG_RD, | ||||
&bs.target_pages, 0, "Target allocation"); | &bs.target_pages, 0, "Target allocation"); | ||||
SYSCTL_ULONG(_dev_xen_balloon, OID_AUTO, driver_pages, CTLFLAG_RD, | SYSCTL_ULONG(_dev_xen_balloon, OID_AUTO, driver_pages, CTLFLAG_RD, | ||||
&bs.driver_pages, 0, "Driver pages"); | &bs.driver_pages, 0, "Driver pages"); | ||||
SYSCTL_ULONG(_dev_xen_balloon, OID_AUTO, hard_limit, CTLFLAG_RD, | SYSCTL_ULONG(_dev_xen_balloon, OID_AUTO, hard_limit, CTLFLAG_RD, | ||||
&bs.hard_limit, 0, "Xen hard limit"); | &bs.hard_limit, 0, "Xen hard limit"); | ||||
▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines |