Lines Matching refs:buf
103 char buf[201];
132 len = c->get_cgroup_item(c, "cpuset.cpus", buf, 200);
138 sprintf(buf, "0");
139 b = c->set_cgroup_item(c, "cpuset.cpus", buf);
180 len = c->get_cgroup_item(c, "cpuset.cpus", buf, 0);
186 len = c->get_cgroup_item(c, "cpuset.cpus", buf, 200);
187 if (len <= 0 || strncmp(buf, "0", 1)) {
188 fprintf(stderr, "%d: not able to get cpuset.cpus (len %d buf %s)\n", __LINE__, len, buf);
192 sprintf(buf, "FROZEN");
193 b = c->set_cgroup_item(c, "freezer.state", buf);
199 sprintf(buf, "XXX");
200 len = c->get_cgroup_item(c, "freezer.state", buf, 200);
201 if (len <= 0 || (strcmp(buf, "FREEZING\n") && strcmp(buf, "FROZEN\n"))) {
202 fprintf(stderr, "%d: not able to get freezer.state (len %d buf %s)\n", __LINE__, len, buf);