Lines Matching defs:subsystem
138 static struct cgroup_process_info *find_info_for_subsystem(struct cgroup_process_info *info, const char *subsystem);
581 /* if the subsystem whitelist is not specified, include all
652 static struct cgroup_hierarchy *lxc_cgroup_find_hierarchy(struct cgroup_meta_data *meta_data, const char *subsystem)
659 if (h && lxc_string_in_array(subsystem, (const char **)h->subsystems))
713 static char *lxc_cgroup_find_abs_path(const char *subsystem, const char *group, bool should_be_writable, const char *suffix)
725 h = lxc_cgroup_find_hierarchy(meta_data, subsystem);
1091 /* ignore legacy 'ns' subsystem here, lxc_cgroup_create_legacy
1293 static char *lxc_cgroup_get_hierarchy_path_data(const char *subsystem, struct cgfs_data *d)
1296 info = find_info_for_subsystem(info, subsystem);
1303 static char *lxc_cgroup_get_hierarchy_abs_path_data(const char *subsystem, struct cgfs_data *d)
1308 info = find_info_for_subsystem(info, subsystem);
1321 static char *lxc_cgroup_get_hierarchy_abs_path(const char *subsystem, const char *name, const char *lxcpath)
1334 info = find_info_for_subsystem(base_info, subsystem);
1355 char *subsystem = NULL, *p, *path;
1358 subsystem = alloca(strlen(filename) + 1);
1359 strcpy(subsystem, filename);
1360 if ((p = strchr(subsystem, '.')) != NULL)
1364 path = lxc_cgroup_get_hierarchy_abs_path_data(subsystem, d);
1376 char *subsystem = NULL, *p, *path;
1379 subsystem = alloca(strlen(filename) + 1);
1380 strcpy(subsystem, filename);
1381 if ((p = strchr(subsystem, '.')) != NULL)
1384 path = lxc_cgroup_get_hierarchy_abs_path(subsystem, name, lxcpath);
1394 char *subsystem = NULL, *p, *path;
1397 subsystem = alloca(strlen(filename) + 1);
1398 strcpy(subsystem, filename);
1399 if ((p = strchr(subsystem, '.')) != NULL)
1402 path = lxc_cgroup_get_hierarchy_abs_path(subsystem, name, lxcpath);
1489 /* create subsystem directory */
1495 SYSERROR("could not create cgroup subsystem directory /sys/fs/cgroup/%s", dirname);
1589 /* add symlinks for every single subsystem */
1794 /* we have a subsystem if it's either in the list of
1947 find_info_for_subsystem(struct cgroup_process_info *info, const char *subsystem)
1954 if (lxc_string_in_array(subsystem, (const char **)h->subsystems))
2023 if (do_devices == !strncmp("devices", cg->subsystem, 7)) {
2024 if (strcmp(cg->subsystem, "devices.deny") == 0 &&
2027 if (strcmp(cg->subsystem, "devices.allow") == 0 &&
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);
2431 static const char *cgfs_get_cgroup(void *hdata, const char *subsystem)
2437 return lxc_cgroup_get_hierarchy_path_data(subsystem, d);