Searched refs:cgroup_path (Results 1 - 12 of 12) sorted by relevance

/systemd/src/core/
H A Dcgroup.c701 if (u->cgroup_path &&
704 return u->cgroup_path;
750 if (streq_ptr(u->cgroup_path, p))
761 u->cgroup_path = p;
773 if (!u->cgroup_path)
794 r = cg_get_path(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path, "cgroup.populated", &populated);
806 return log_unit_error_errno(u, errno, "Failed to add inotify watch descriptor for control group %s: %m", u->cgroup_path);
830 if (!u->cgroup_path) {
845 r = cg_create_everywhere(u->manager->cgroup_supported, target_mask, u->cgroup_path);
847 return log_unit_error_errno(u, r, "Failed to create cgroup %s: %m", u->cgroup_path);
[all...]
H A Dunit-printf.c87 if (u->cgroup_path)
88 n = strdup(u->cgroup_path);
123 if (slice->cgroup_path)
124 n = strdup(slice->cgroup_path);
H A Dscope.c404 if (!u->cgroup_path)
407 return cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path) <= 0;
H A Dexecute.h229 const char *cgroup_path; member in struct:ExecParameters
H A Dexecute.c1569 if (params->cgroup_path) {
1570 r = cg_attach_everywhere(params->cgroup_supported, params->cgroup_path, 0, NULL, NULL);
1671 if (params->cgroup_path && context->user && params->cgroup_delegate) {
1672 r = cg_set_task_access(SYSTEMD_CGROUP_CONTROLLER, params->cgroup_path, 0644, uid, gid);
1679 r = cg_set_group_access(SYSTEMD_CGROUP_CONTROLLER, params->cgroup_path, 0755, uid, gid);
2149 if (params->cgroup_path)
2150 (void) cg_attach(SYSTEMD_CGROUP_CONTROLLER, params->cgroup_path, pid);
H A Ddbus-unit.c829 /* Three cases: a) u->cgroup_path is NULL, in which case the
831 * string. b) u->cgroup_path is the empty string, which
835 if (u->cgroup_path)
836 t = isempty(u->cgroup_path) ? "/" : u->cgroup_path;
H A Dunit.c918 prefix, strna(u->cgroup_path),
2587 if (u->cgroup_path)
2588 unit_serialize_item(u, f, "cgroup", u->cgroup_path);
3125 if (IN_SET(who, KILL_ALL, KILL_ALL_FAIL) && u->cgroup_path) {
3134 q = cg_kill_recursive(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path, signo, false, false, false, pid_set);
3532 if (u->cgroup_path &&
3541 r = cg_kill_recursive(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path, sig, true, k != KILL_TERMINATE, false, pid_set);
3544 log_unit_warning_errno(u, r, "Failed to kill control group %s, ignoring: %m", u->cgroup_path);
3573 cg_kill_recursive(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path, SIGHUP, false, true, false, pid_set);
H A Dservice.c1264 if (is_control && UNIT(s)->cgroup_path) {
1265 path = strjoina(UNIT(s)->cgroup_path, "/control");
1268 path = UNIT(s)->cgroup_path;
1289 exec_params.cgroup_path = path;
1356 if (!UNIT(s)->cgroup_path)
1359 r = cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, UNIT(s)->cgroup_path);
1691 if (!UNIT(s)->cgroup_path)
1694 p = strjoina(UNIT(s)->cgroup_path, "/control");
H A Dunit.h184 char *cgroup_path; member in struct:Unit
H A Dswap.c639 exec_params.cgroup_path = UNIT(s)->cgroup_path;
H A Dmount.c733 exec_params.cgroup_path = UNIT(m)->cgroup_path;
H A Dsocket.c1562 exec_params.cgroup_path = UNIT(s)->cgroup_path;

Completed in 3598 milliseconds