D | bus-unit-procs.c | 27 static int add_cgroup(Hashmap *cgroups, const char *path, bool is_const, struct CGroupInfo **ret) { in add_cgroup() argument 31 assert(cgroups); in add_cgroup() 36 cg = hashmap_get(cgroups, path); in add_cgroup() 51 r = add_cgroup(cgroups, pp, false, &parent); in add_cgroup() 73 r = hashmap_put(cgroups, cg->cgroup_path, cg); in add_cgroup() 91 Hashmap *cgroups, in add_process() argument 99 assert(cgroups); in add_process() 103 r = add_cgroup(cgroups, path, true, &cg); in add_process() 110 static void remove_cgroup(Hashmap *cgroups, struct CGroupInfo *cg) { in remove_cgroup() argument 111 assert(cgroups); in remove_cgroup() [all …]
|