/systemd-251/test/units/ |
D | testsuite-38.sh | 106 grep -q "frozen $2" /sys/fs/cgroup/system.slice/"$1"/cgroup.events 218 local slice="bar.slice" 221 systemd-run --unit "$unit" --slice "$slice" sleep 3600 >/dev/null 2>&1 226 systemctl freeze "$slice" 227 check_freezer_state "${slice}" "frozen" 229 grep -q "frozen 1" /sys/fs/cgroup/"${slice}"/cgroup.events 230 grep -q "frozen 1" /sys/fs/cgroup/"${slice}"/"${unit}"/cgroup.events 234 systemctl thaw "$slice" 236 check_freezer_state "${slice}" "running" 237 grep -q "frozen 0" /sys/fs/cgroup/"${slice}"/cgroup.events [all …]
|
D | testsuite-19.sh | 8 test -w /sys/fs/cgroup/system.slice/test0.service/ -a \ 9 -w /sys/fs/cgroup/system.slice/test0.service/cgroup.procs -a \ 10 -w /sys/fs/cgroup/system.slice/test0.service/cgroup.subtree_control 13 grep -q memory /sys/fs/cgroup/system.slice/test1.service/cgroup.controllers 16 grep -q pids /sys/fs/cgroup/system.slice/test2.service/cgroup.controllers 19 grep -qv io /sys/fs/cgroup/system.slice/cgroup.controllers 23 …grep -q io /sys/fs/cgroup/system.slice/system-foo.slice/system-foo-bar.slice/system-foo-bar-baz.sl… 33 grep -qv io /sys/fs/cgroup/system.slice/cgroup.controllers
|
/systemd-251/test/journal-data/ |
D | journal-1.txt | 8 0::/user.slice/user-1002.slice/user@1002.service/gnome-terminal-server.service 13 0::/user.slice/user-1002.slice/user@1002.service/gnome-terminal-server.service
|
/systemd-251/src/basic/ |
D | unit-name.c | 782 int slice_build_parent_slice(const char *slice, char **ret) { in slice_build_parent_slice() argument 787 assert(slice); in slice_build_parent_slice() 790 if (!slice_name_is_valid(slice)) in slice_build_parent_slice() 793 if (streq(slice, SPECIAL_ROOT_SLICE)) { in slice_build_parent_slice() 798 s = strdup(slice); in slice_build_parent_slice() 815 int slice_build_subslice(const char *slice, const char *name, char **ret) { in slice_build_subslice() argument 818 assert(slice); in slice_build_subslice() 822 if (!slice_name_is_valid(slice)) in slice_build_subslice() 828 if (streq(slice, SPECIAL_ROOT_SLICE)) in slice_build_subslice() 833 assert_se(e = endswith(slice, ".slice")); in slice_build_subslice() [all …]
|
D | cgroup-util.c | 1414 _cleanup_free_ char *slice = NULL; in cg_path_get_owner_uid() local 1420 r = cg_path_get_slice(path, &slice); in cg_path_get_owner_uid() 1424 start = startswith(slice, "user-"); in cg_path_get_owner_uid() 1449 int cg_path_get_slice(const char *p, char **slice) { in cg_path_get_slice() argument 1453 assert(slice); in cg_path_get_slice() 1473 *slice = s; in cg_path_get_slice() 1477 return cg_path_decode_unit(e, slice); in cg_path_get_slice() 1485 int cg_pid_get_slice(pid_t pid, char **slice) { in cg_pid_get_slice() argument 1489 assert(slice); in cg_pid_get_slice() 1495 return cg_path_get_slice(cgroup, slice); in cg_pid_get_slice() [all …]
|
D | cgroup-util.h | 265 int cg_path_get_slice(const char *path, char **slice); 266 int cg_path_get_user_slice(const char *path, char **slice); 276 int cg_pid_get_slice(pid_t pid, char **slice); 277 int cg_pid_get_user_slice(pid_t pid, char **slice);
|
D | unit-name.h | 65 int slice_build_parent_slice(const char *slice, char **ret); 66 int slice_build_subslice(const char *slice, const char *name, char **subslice);
|
/systemd-251/units/ |
D | slices.target | 13 Wants=-.slice system.slice 14 After=-.slice system.slice
|
D | systemd-machined.service.in | 15 Wants=machine.slice 16 After=machine.slice
|
/systemd-251/src/core/ |
D | unit-printf.c | 119 const Unit *u = ASSERT_PTR(userdata), *slice; in specifier_cgroup_slice() local 124 slice = UNIT_GET_SLICE(u); in specifier_cgroup_slice() 125 if (slice) { in specifier_cgroup_slice() 126 if (slice->cgroup_path) in specifier_cgroup_slice() 127 n = strdup(slice->cgroup_path); in specifier_cgroup_slice() 129 n = unit_default_cgroup_path(slice); in specifier_cgroup_slice()
|
D | cgroup.c | 1855 Unit *slice; in unit_get_siblings_mask() local 1862 slice = UNIT_GET_SLICE(u); in unit_get_siblings_mask() 1863 if (slice) in unit_get_siblings_mask() 1864 return unit_get_members_mask(slice); in unit_get_siblings_mask() 1881 Unit *slice; in unit_get_ancestor_disable_mask() local 1889 slice = UNIT_GET_SLICE(u); in unit_get_ancestor_disable_mask() 1890 if (slice) in unit_get_ancestor_disable_mask() 1891 mask |= unit_get_ancestor_disable_mask(slice); in unit_get_ancestor_disable_mask() 1933 Unit *slice; in unit_invalidate_cgroup_members_masks() local 1940 slice = UNIT_GET_SLICE(u); in unit_invalidate_cgroup_members_masks() [all …]
|
D | meson.build | 46 dbus-slice.c 47 dbus-slice.h 114 slice.c 115 slice.h
|
/systemd-251/src/systemd/ |
D | sd-login.h | 70 int sd_pid_get_slice(pid_t pid, char **slice); 73 int sd_pid_get_user_slice(pid_t pid, char **slice); 101 int sd_peer_get_slice(int fd, char **slice); 105 int sd_peer_get_user_slice(int fd, char **slice);
|
/systemd-251/src/nspawn/ |
D | nspawn-register.c | 111 const char *slice, in register_machine() argument 164 if (!isempty(slice)) { in register_machine() 165 r = sd_bus_message_append(m, "(sv)", "Slice", "s", slice); in register_machine() 225 const char *slice, in allocate_scope() argument 270 "Slice", "s", isempty(slice) ? SPECIAL_MACHINE_SLICE : slice); in allocate_scope()
|
D | nspawn-register.h | 10 …d, const char *directory, sd_id128_t uuid, int local_ifindex, const char *slice, CustomMount *moun… 13 int allocate_scope(sd_bus *bus, const char *machine_name, pid_t pid, const char *slice, CustomMount…
|
/systemd-251/units/user/ |
D | meson.build | 4 'app.slice', 5 'background.slice', 14 'session.slice',
|
D | systemd-exit.service | 19 # Place into the root slice to not keep another slice unit alive 20 Slice=-.slice
|
/systemd-251/src/libsystemd/sd-login/ |
D | sd-login.c | 82 _public_ int sd_pid_get_slice(pid_t pid, char **slice) { in sd_pid_get_slice() argument 86 assert_return(slice, -EINVAL); in sd_pid_get_slice() 88 r = cg_pid_get_slice(pid, slice); in sd_pid_get_slice() 92 _public_ int sd_pid_get_user_slice(pid_t pid, char **slice) { in sd_pid_get_user_slice() argument 96 assert_return(slice, -EINVAL); in sd_pid_get_user_slice() 98 r = cg_pid_get_user_slice(pid, slice); in sd_pid_get_user_slice() 208 _public_ int sd_peer_get_slice(int fd, char **slice) { in sd_peer_get_slice() argument 213 assert_return(slice, -EINVAL); in sd_peer_get_slice() 219 return cg_pid_get_slice(ucred.pid, slice); in sd_peer_get_slice() 222 _public_ int sd_peer_get_user_slice(int fd, char **slice) { in sd_peer_get_user_slice() argument [all …]
|
/systemd-251/shell-completion/zsh/ |
D | _systemd-run | 13 __systemctl list-units --all -t slice \ 69 '--slice=[Run in the specified slice]:slices:__systemd-run_slices' \ 70 '--slice-inherit[Run in the inherited slice]' \
|
D | _systemd-nspawn | 27 …{--slice=,-S+}'[Make the container part of the specified slice, instead of the default machine.sli…
|
/systemd-251/src/login/ |
D | logind-user.c | 75 r = slice_build_subslice(SPECIAL_USER_SLICE, lu, &u->slice); in user_new() 91 r = hashmap_put(m->user_units, u->slice, u); in user_new() 123 if (u->slice) in user_free() 124 hashmap_remove_value(u->manager->user_units, u->slice, u); in user_free() 134 u->slice = mfree(u->slice); in user_free() 405 r = sd_bus_message_append(m, "sb", u->slice, true); in user_update_slice() 634 assert(u->slice); in user_unit_active() 636 FOREACH_STRING(i, u->service, u->runtime_dir_service, u->slice) { in user_unit_active() 753 return manager_kill_unit(u->manager, u->slice, KILL_ALL, signo, NULL); in user_kill()
|
/systemd-251/docs/ |
D | CGROUP_DELEGATION.md | 162 3. The `.slice` unit type. Units of this type do not directly contain any 169 be moved around though, i.e. assigned to a different slice if needed. 171 The naming of slice units directly maps to the cgroup tree path. This is not 172 the case for service and scope units however. A slice named `foo-bar-baz.slice` 173 maps to a cgroup `/foo.slice/foo-bar.slice/foo-bar-baz.slice/`. A service 174 `quux.service` which is attached to the slice `foo-bar-baz.slice` maps to the 175 cgroup `/foo.slice/foo-bar.slice/foo-bar-baz.slice/quux.service/`. 177 By default systemd sets up four slice units: 179 1. `-.slice` is the root slice. i.e. the parent of everything else. On the host 182 2. `system.slice` is where system services are by default placed, unless [all …]
|
D | DESKTOP_ENVIRONMENTS.md | 35 * `session.slice`: Contains only processes essential to run the user's graphical session 36 * `app.slice`: Contains all normal applications that the user is running 37 * `background.slice`: Useful for low-priority background tasks 46 TODO: Will there be a default to place units into e.g. `app.slice` by default 47 rather than the root slice? 81 This could be `app-<launcher>-<ApplicationID>-<RANDOM>.slice`.
|
/systemd-251/shell-completion/bash/ |
D | systemd-run | 24 __get_slice_units () { __systemctl $1 list-units --all -t slice \ 34 …local OPTS='--no-ask-password --scope -u --unit -p --property --description --slice --slice-inherit 45 … --unit -p --property --slice --description --service-type --uid --gid --nice --working-directory 66 --slice)
|
/systemd-251/test/fuzz/fuzz-unit-file/ |
D | systemd-machined.service | 15 Wants=machine.slice 16 After=machine.slice
|