Lines Matching refs:control
80 char *cg_control(const char *cgroup, const char *control) in cg_control() argument
82 size_t len = strlen(cgroup) + strlen(control) + 2; in cg_control()
85 snprintf(ret, len, "%s/%s", cgroup, control); in cg_control()
90 int cg_read(const char *cgroup, const char *control, char *buf, size_t len) in cg_read() argument
94 snprintf(path, sizeof(path), "%s/%s", cgroup, control); in cg_read()
102 int cg_read_strcmp(const char *cgroup, const char *control, in cg_read_strcmp() argument
119 if (cg_read(cgroup, control, buf, size)) { in cg_read_strcmp()
129 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument
133 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_strstr()
139 long cg_read_long(const char *cgroup, const char *control) in cg_read_long() argument
143 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_long()
149 long cg_read_key_long(const char *cgroup, const char *control, const char *key) in cg_read_key_long() argument
154 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_key_long()
164 long cg_read_lc(const char *cgroup, const char *control) in cg_read_lc() argument
171 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_lc()
180 int cg_write(const char *cgroup, const char *control, char *buf) in cg_write() argument
185 snprintf(path, sizeof(path), "%s/%s", cgroup, control); in cg_write()