Lines Matching refs:controller

235 int cg_trim(const char *controller, const char *path, bool delete_root) {  in cg_trim()  argument
240 assert(controller); in cg_trim()
242 r = cg_get_path(controller, path, NULL, &fs); in cg_trim()
273 if (q > 0 && streq(controller, SYSTEMD_CGROUP_CONTROLLER)) in cg_trim()
282 int cg_create(const char *controller, const char *path) { in cg_create() argument
286 r = cg_get_path_and_check(controller, path, NULL, &fs); in cg_create()
304 if (r > 0 && streq(controller, SYSTEMD_CGROUP_CONTROLLER)) { in cg_create()
313 int cg_create_and_attach(const char *controller, const char *path, pid_t pid) { in cg_create_and_attach() argument
318 r = cg_create(controller, path); in cg_create_and_attach()
322 q = cg_attach(controller, path, pid); in cg_create_and_attach()
330 int cg_attach(const char *controller, const char *path, pid_t pid) { in cg_attach() argument
338 r = cg_get_path_and_check(controller, path, "cgroup.procs", &fs); in cg_attach()
348 if (r == -EOPNOTSUPP && cg_is_threaded(controller, path) > 0) in cg_attach()
358 if (r > 0 && streq(controller, SYSTEMD_CGROUP_CONTROLLER)) { in cg_attach()
367 int cg_attach_fallback(const char *controller, const char *path, pid_t pid) { in cg_attach_fallback() argument
370 assert(controller); in cg_attach_fallback()
374 r = cg_attach(controller, path, pid); in cg_attach_fallback()
384 q = cg_attach(controller, prefix, pid); in cg_attach_fallback()
394 const char *controller, in cg_set_access() argument
434 unified = cg_unified_controller(controller); in cg_set_access()
439 r = cg_get_path(controller, path, NULL, &fs); in cg_set_access()
451 r = cg_get_path(controller, path, i->name, &fs); in cg_set_access()
464 if (streq(controller, SYSTEMD_CGROUP_CONTROLLER)) { in cg_set_access()