Lines Matching defs:value
139 static int do_cgroup_get(const char *cgroup_path, const char *sub_filename, char *value, size_t len);
140 static int do_cgroup_set(const char *cgroup_path, const char *sub_filename, const char *value);
1275 /* ignore return value here, perhaps we created the
1353 static int lxc_cgroup_set_data(const char *filename, const char *value, struct cgfs_data *d)
1366 ret = do_cgroup_set(path, filename, value);
1374 static int lxc_cgroupfs_set(const char *filename, const char *value, const char *name, const char *lxcpath)
1386 ret = do_cgroup_set(path, filename, value);
1392 static int lxc_cgroupfs_get(const char *filename, char *value, size_t len, const char *name, const char *lxcpath)
1404 ret = do_cgroup_get(path, filename, value, len);
1962 char *value, size_t len)
1976 ret = lxc_read_from_file(filename, value, len);
1984 const char *value)
1998 ret = lxc_write_to_file(filename, value, strlen(value), false);
2025 cgroup_devices_has_allow_or_deny(d, cg->value, false))
2028 cgroup_devices_has_allow_or_deny(d, cg->value, true))
2030 if (lxc_cgroup_set_data(cg->subsystem, cg->value, d)) {
2033 cg->subsystem, cg->value, d->name);
2037 cg->subsystem, cg->value, d->name);
2042 DEBUG("cgroup '%s' set to '%s'", cg->subsystem, cg->value);
2241 char value[1024];
2250 /* don't overwrite a non-empty value in the file */
2251 ret = cgroup_read_from_file(childfile, value, sizeof(value));
2254 if (value[0] != '\0' && value[0] != '\n') {
2277 ret = cgroup_read_from_file(parentfile, value, sizeof(value));
2280 if (ret == sizeof(value)) {
2282 ERROR("parent cpuset value too long");
2285 ok = (lxc_write_to_file(childfile, value, strlen(value), false) >= 0);