Displaying 4 results from an estimated 4 matches for "virtballoon_attr_show".
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...? LONG_MAX : -diff);
+ struct writeback_control wbc = {
+ .sync_mode = WB_SYNC_ALL,
+ .nr_to_write = nr_to_write,
+ .range_start = 0,
+ .range_end = LLONG_MAX,
+ };
+ sync_inode(&the_inode.inode, &wbc);
+ }
+ update_balloon_size(vb);
+ }
+ return 0;
+}
+
+static ssize_t virtballoon_attr_show(struct device *dev,
+ struct device_attribute *attr,
+ char *buf);
+
+static DEVICE_ATTR(total_memory, 0644,
+ virtballoon_attr_show, NULL);
+
+static DEVICE_ATTR(free_memory, 0644,
+ virtballoon_attr_show, NULL);
+
+static DEVICE_ATTR(target_pages, 0644,
+ virtballoon_attr_show, NU...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...? LONG_MAX : -diff);
+ struct writeback_control wbc = {
+ .sync_mode = WB_SYNC_ALL,
+ .nr_to_write = nr_to_write,
+ .range_start = 0,
+ .range_end = LLONG_MAX,
+ };
+ sync_inode(&the_inode.inode, &wbc);
+ }
+ update_balloon_size(vb);
+ }
+ return 0;
+}
+
+static ssize_t virtballoon_attr_show(struct device *dev,
+ struct device_attribute *attr,
+ char *buf);
+
+static DEVICE_ATTR(total_memory, 0644,
+ virtballoon_attr_show, NULL);
+
+static DEVICE_ATTR(free_memory, 0644,
+ virtballoon_attr_show, NULL);
+
+static DEVICE_ATTR(target_pages, 0644,
+ virtballoon_attr_show, NU...
2012 Jul 25
0
No subject
...};
> >> + sync_inode(&the_inode.inode, &wbc);
> >> + }
> >> + update_balloon_size(vb);
> >> + }
> >> + return 0;
> >> +}
> >> +
> >> +static ssize_t virtballoon_attr_show(struct device *dev,
> >> + struct device_attribute *attr,
> >> + char *buf);
> >> +
> >> +static DEVICE_ATTR(total_memory, 0644,
> >> + virtballoon_attr_show, NULL);
> >> +
&g...
2012 Jul 25
0
No subject
...};
> >> + sync_inode(&the_inode.inode, &wbc);
> >> + }
> >> + update_balloon_size(vb);
> >> + }
> >> + return 0;
> >> +}
> >> +
> >> +static ssize_t virtballoon_attr_show(struct device *dev,
> >> + struct device_attribute *attr,
> >> + char *buf);
> >> +
> >> +static DEVICE_ATTR(total_memory, 0644,
> >> + virtballoon_attr_show, NULL);
> >> +
&g...