/systemd/src/nspawn/ |
H A D | nspawn-cgroup.c | 23 #include "cgroup-util.h" 27 #include "nspawn-cgroup.h" 40 return log_error_errno(r, "Failed to get container cgroup path: %m"); 44 return log_error_errno(r, "Failed to get file system path for container cgroup: %m"); 54 "cgroup.procs", 55 "cgroup.events", 56 "cgroup.clone_children", 57 "cgroup.controllers", 58 "cgroup.subtree_control", 59 "cgroup 68 _cleanup_free_ char *cgroup = NULL; local 122 _cleanup_free_ char *cgroup = NULL; local [all...] |
/systemd/src/bootchart/ |
H A D | bootchart.h | 78 char *cgroup; member in struct:ps_struct
|
/systemd/src/core/ |
H A D | shutdown.c | 33 #include "cgroup-util.h" 164 _cleanup_free_ char *cgroup = NULL; local 205 cg_get_root_path(&cgroup); 232 /* Let's trim the cgroup tree on each iteration so 233 that we leave an empty cgroup tree around, so that 236 if (cgroup) 237 cg_trim(SYSTEMD_CGROUP_CONTROLLER, cgroup, false);
|
H A D | dbus.c | 31 #include "dbus-cgroup.h" 76 const char *cgroup, *me; local 105 /* parse 'cgroup-empty' notification */ 106 r = sd_bus_message_read(message, "s", &cgroup); 112 manager_notify_cgroup_empty(m, cgroup);
|
H A D | cgroup.c | 24 #include "cgroup-util.h" 25 #include "cgroup.h" 308 /* Some cgroup attributes are not supported on the root cgroup, 316 * cgroup trees (assuming we are running in a container then), 422 /* Changing the devices list of a populated cgroup 478 log_debug("Ignoring device %s while writing cgroup attribute.", a->path); 618 /* This returns the cgroup mask of all controllers to enable 619 * for a specific cgroup, i.e. everything it needs itself, 621 * need. This is primarily useful on the legacy cgroup 1390 manager_get_unit_by_cgroup(Manager *m, const char *cgroup) argument 1418 _cleanup_free_ char *cgroup = NULL; local 1455 manager_notify_cgroup_empty(Manager *m, const char *cgroup) argument [all...] |
/systemd/src/libsystemd/sd-login/ |
H A D | test-login.c | 37 char *seat, *type, *class, *display, *remote_user, *remote_host, *display_session, *cgroup; local 54 assert_se(sd_pid_get_cgroup(0, &cgroup) == 0); 55 printf("cgroup = %s\n", cgroup); 56 free(cgroup);
|
H A D | sd-login.c | 29 #include "cgroup-util.h" 53 * cgroup does not exist → -ENOENT 114 _public_ int sd_pid_get_cgroup(pid_t pid, char **cgroup) { argument 119 assert_return(cgroup, -EINVAL); 126 * cgroup, let's return the "/" in the public APIs instead, as 136 *cgroup = c; 238 _public_ int sd_peer_get_cgroup(int fd, char **cgroup) { argument 243 assert_return(cgroup, -EINVAL); 249 return sd_pid_get_cgroup(ucred.pid, cgroup);
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-creds.h | 57 char *cgroup; member in struct:sd_bus_creds
|
/systemd/src/coredump/ |
H A D | coredumpctl.c | 368 *slice = NULL, *cgroup = NULL, *owner_uid = NULL, local 390 retrieve(d, l, "COREDUMP_CGROUP", &cgroup); 474 if (cgroup) 475 fprintf(file, " Control Group: %s\n", cgroup);
|
/systemd/src/login/ |
H A D | loginctl.c | 31 #include "cgroup-show.h" 32 #include "cgroup-util.h" 236 const char *cgroup; local 260 r = sd_bus_message_read(reply, "s", &cgroup); 264 if (isempty(cgroup)) 267 if (cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, cgroup) != 0 && leader <= 0) 276 show_cgroup_and_extra(SYSTEMD_CGROUP_CONTROLLER, cgroup, "\t\t ", c, false, &leader, leader > 0, get_output_flags());
|
/systemd/src/udev/ |
H A D | udevd.c | 47 #include "cgroup-util.h" 82 const char *cgroup; member in struct:Manager 1257 } else if (manager->cgroup) 1258 /* cleanup possible left-over processes in our cgroup */ 1259 cg_kill(SYSTEMD_CGROUP_CONTROLLER, manager->cgroup, SIGKILL, false, true, NULL); 1499 static int manager_new(Manager **ret, int fd_ctrl, int fd_uevent, const char *cgroup) { argument 1528 manager->cgroup = cgroup; 1616 static int run(int fd_ctrl, int fd_uevent, const char *cgroup) { argument 1620 r = manager_new(&manager, fd_ctrl, fd_uevent, cgroup); 1652 _cleanup_free_ char *cgroup = NULL; local [all...] |
/systemd/src/machine/ |
H A D | machinectl.c | 37 #include "cgroup-show.h" 38 #include "cgroup-util.h" 346 const char *cgroup; local 374 r = sd_bus_message_read(reply, "s", &cgroup); 378 if (cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, cgroup) != 0 && leader <= 0) 387 show_cgroup_and_extra(SYSTEMD_CGROUP_CONTROLLER, cgroup, "\t\t ", c, false, &leader, leader > 0, get_output_flags());
|
/systemd/src/basic/ |
H A D | cgroup-util.c | 34 #include "cgroup-util.h" 67 r = cg_get_path(controller, path, "cgroup.procs", &fs); 82 /* Note that the cgroup.procs might contain duplicates! See 340 * exist in the root cgroup, we only check for 467 * /sys/fs/cgroup/ we want to mount it to. Effectively, this 488 t = strappend("/sys/fs/cgroup/", dn); 490 t = strjoin("/sys/fs/cgroup/", dn, "/", suffix, NULL); 492 t = strjoin("/sys/fs/cgroup/", dn, "/", path, NULL); 494 t = strjoin("/sys/fs/cgroup/", dn, "/", path, "/", suffix, NULL); 508 t = strdup("/sys/fs/cgroup"); 1191 cg_shift_path(const char *cgroup, const char *root, const char **shifted) argument 1219 cg_pid_get_path_shifted(pid_t pid, const char *root, char **cgroup) argument 1251 cg_path_decode_unit(const char *cgroup, char **unit) argument 1341 _cleanup_free_ char *cgroup = NULL; local 1462 _cleanup_free_ char *cgroup = NULL; local 1488 _cleanup_free_ char *cgroup = NULL; local 1536 _cleanup_free_ char *cgroup = NULL; local 1572 _cleanup_free_ char *cgroup = NULL; local 1619 _cleanup_free_ char *cgroup = NULL; local 1646 _cleanup_free_ char *cgroup = NULL; local [all...] |