Displaying 4 results from an estimated 4 matches for "high_kb".
Did you mean:
high_h
2008 Nov 14
0
[PATCH] tools: use sysfs interface to balloon driver if present
...target'' : ''target_kb'',
+ ''current'' : ''info/current_kb'',
+ ''low-balloon'' : ''info/low_kb'',
+ ''high-balloon'' : ''info/high_kb'',
+ ''limit'' : ''info/hard_limit_kb'' }
+
+ name = os.path.join(SYSFS_XEN_MEMORY, sysfiles[label])
+ f = file(name, ''r'')
+
+ val = f.read().strip()
+ if val.isdigit():
+ return int(val)
+ return...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
...ong target)
schedule_work(&balloon_worker);
}
-static struct xenbus_watch target_watch =
-{
+static struct xenbus_watch target_watch = {
.node = "memory/target"
};
@@ -460,8 +459,8 @@ BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low));
BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high));
BALLOON_SHOW(driver_kb, "%lu\n", PAGES2KB(balloon_stats.driver_pages));
-static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr,
- char *buf)
+static ssize_t show_target_kb(struct sys_device...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
...ong target)
schedule_work(&balloon_worker);
}
-static struct xenbus_watch target_watch =
-{
+static struct xenbus_watch target_watch = {
.node = "memory/target"
};
@@ -460,8 +459,8 @@ BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low));
BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high));
BALLOON_SHOW(driver_kb, "%lu\n", PAGES2KB(balloon_stats.driver_pages));
-static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr,
- char *buf)
+static ssize_t show_target_kb(struct sys_device...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
...ong target)
schedule_work(&balloon_worker);
}
-static struct xenbus_watch target_watch =
-{
+static struct xenbus_watch target_watch = {
.node = "memory/target"
};
@@ -460,8 +459,8 @@ BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low));
BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high));
BALLOON_SHOW(driver_kb, "%lu\n", PAGES2KB(balloon_stats.driver_pages));
-static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr,
- char *buf)
+static ssize_t show_target_kb(struct sys_device...