Lines Matching refs:buf
2085 struct kobj_attribute *attr, char *buf)
2087 return sprintf(buf, "%u\n", ksm_thread_sleep_millisecs);
2092 const char *buf, size_t count)
2097 err = kstrtoul(buf, 10, &msecs);
2108 struct kobj_attribute *attr, char *buf)
2110 return sprintf(buf, "%u\n", ksm_thread_pages_to_scan);
2115 const char *buf, size_t count)
2120 err = kstrtoul(buf, 10, &nr_pages);
2131 char *buf)
2133 return sprintf(buf, "%lu\n", ksm_run);
2137 const char *buf, size_t count)
2142 err = kstrtoul(buf, 10, &flags);
2180 struct kobj_attribute *attr, char *buf)
2182 return sprintf(buf, "%u\n", ksm_merge_across_nodes);
2187 const char *buf, size_t count)
2192 err = kstrtoul(buf, 10, &knob);
2204 struct rb_root *buf;
2212 buf = kcalloc(nr_node_ids + nr_node_ids, sizeof(*buf),
2215 if (!buf)
2218 root_stable_tree = buf;
2219 root_unstable_tree = buf + nr_node_ids;
2237 struct kobj_attribute *attr, char *buf)
2239 return sprintf(buf, "%lu\n", ksm_pages_shared);
2244 struct kobj_attribute *attr, char *buf)
2246 return sprintf(buf, "%lu\n", ksm_pages_sharing);
2251 struct kobj_attribute *attr, char *buf)
2253 return sprintf(buf, "%lu\n", ksm_pages_unshared);
2258 struct kobj_attribute *attr, char *buf)
2270 return sprintf(buf, "%ld\n", ksm_pages_volatile);
2275 struct kobj_attribute *attr, char *buf)
2277 return sprintf(buf, "%lu\n", ksm_scan.seqnr);