D | cgroup_util.c | 78 char *cg_control(const char *cgroup, const char *control) in cg_control() argument 80 size_t len = strlen(cgroup) + strlen(control) + 2; in cg_control() 83 snprintf(ret, len, "%s/%s", cgroup, control); in cg_control() 88 int cg_read(const char *cgroup, const char *control, char *buf, size_t len) in cg_read() argument 92 snprintf(path, sizeof(path), "%s/%s", cgroup, control); in cg_read() 100 int cg_read_strcmp(const char *cgroup, const char *control, in cg_read_strcmp() argument 117 if (cg_read(cgroup, control, buf, size)) { in cg_read_strcmp() 127 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument 131 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_strstr() 137 long cg_read_long(const char *cgroup, const char *control) in cg_read_long() argument [all …]
|