D | cgroup_util.c | 77 int cg_read(const char *cgroup, const char *control, char *buf, size_t len) in cg_read() argument 81 snprintf(path, sizeof(path), "%s/%s", cgroup, control); in cg_read() 89 int cg_read_strcmp(const char *cgroup, const char *control, in cg_read_strcmp() argument 106 if (cg_read(cgroup, control, buf, size)) { in cg_read_strcmp() 116 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument 120 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_strstr() 126 long cg_read_long(const char *cgroup, const char *control) in cg_read_long() argument 130 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_long() 136 long cg_read_key_long(const char *cgroup, const char *control, const char *key) in cg_read_key_long() argument 141 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_key_long() [all …]
|