Searched defs:cg (Results 1 - 6 of 6) sorted by relevance

/lxc/src/lxc/cgroups/
H A Dcgroup.c212 void prune_init_scope(char *cg) argument
216 if (!cg)
219 point = cg + strlen(cg) - strlen(INIT_SCOPE);
220 if (point < cg)
223 if (point == cg)
H A Dcgfs.c2009 struct lxc_cgroup *cg; local
2021 cg = iterator->elem;
2023 if (do_devices == !strncmp("devices", cg->subsystem, 7)) {
2024 if (strcmp(cg->subsystem, "devices.deny") == 0 &&
2025 cgroup_devices_has_allow_or_deny(d, cg->value, false))
2027 if (strcmp(cg->subsystem, "devices.allow") == 0 &&
2028 cgroup_devices_has_allow_or_deny(d, cg->value, true))
2030 if (lxc_cgroup_set_data(cg->subsystem, cg->value, d)) {
2033 cg
[all...]
H A Dcgfsng.c1563 * After $rootfs/sys/fs/container/controller/the/cg/path has been
1565 * cgroupfs onto controll/the/cg/path
1949 struct lxc_cgroup *cg; local
1961 cg = iterator->elem;
1963 if (do_devices == !strncmp("devices", cg->subsystem, 7)) {
1964 if (lxc_cgroup_set_data(cg->subsystem, cg->value, d)) {
1967 cg->subsystem, cg->value, d->name);
1971 cg
[all...]
H A Dcgmanager.c1480 struct lxc_cgroup *cg; local
1501 cg = iterator->elem;
1502 if (do_devices != !strncmp("devices", cg->subsystem, 7))
1504 if (strlen(cg->subsystem) > 100) // i smell a rat
1506 strcpy(controller, cg->subsystem);
1511 d->cgroup_path, cg->subsystem, cg->value) != 0) {
1518 d->cgroup_path, cg->subsystem);
1525 d->cgroup_path, cg->subsystem);
1529 DEBUG("cgroup '%s' set to '%s'", cg
[all...]
/lxc/src/lxc/
H A Dconfile.c2226 struct lxc_cgroup *cg = it->elem; local
2228 strprint(retv, inlen, "lxc.cgroup.%s = %s\n", cg->subsystem, cg->value);
2229 } else if (strcmp(cg->subsystem, key) == 0) {
2230 strprint(retv, inlen, "%s\n", cg->value);
H A Dconf.c4303 struct lxc_cgroup *cg = it->elem; local
4304 if (!all && strcmp(cg->subsystem, k) != 0)
4307 free(cg->subsystem);
4308 free(cg->value);
4309 free(cg);
4772 struct lxc_cgroup *cg = NULL; local
4791 cg = it->elem;
4792 if (strcmp(cg->subsystem, "memory.memsw.limit_in_bytes") == 0) {
4795 } else if (strcmp(cg->subsystem, "memory.limit_in_bytes") == 0 && memsw_limit != NULL) {

Completed in 45 milliseconds