Lines Matching defs:buf
46 char buf[20];
49 len = scnprintf(buf, sizeof(buf), "%s\n",
52 return simple_read_from_buffer(userbuf, count, ppos, buf, len);
77 char buf[20];
79 if (count < 1 || count > sizeof(buf))
82 ret = copy_from_user(buf, user_buf, count);
87 if (buf[count - 1] == '\n')
88 buf[count - 1] = '\0';
96 if (!strncmp(buf, "disabled", count)) {
98 } else if (!strncmp(buf, "enabled", count)) {
100 } else if (!strncmp(buf, "inline", count)) {
132 char buf[100];
138 len = scnprintf(buf, sizeof(buf), "Trace %s not available\n",
140 va = buf;
160 char buf[100];
163 i = scnprintf(buf, sizeof(buf), "%.98s\n", rproc->name);
165 return simple_read_from_buffer(userbuf, count, ppos, buf, i);
179 char *buf = rproc->recovery_disabled ? "disabled\n" : "enabled\n";
181 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf));
213 char buf[10];
216 if (count < 1 || count > sizeof(buf))
219 ret = copy_from_user(buf, user_buf, count);
224 if (buf[count - 1] == '\n')
225 buf[count - 1] = '\0';
227 if (!strncmp(buf, "enabled", count)) {
231 } else if (!strncmp(buf, "disabled", count)) {
233 } else if (!strncmp(buf, "recover", count)) {