| /systemd/src/nspawn/ |
| H A D | nspawn-register.c | 35 const char *slice, 100 if (!isempty(slice)) { 101 r = sd_bus_message_append(m, "(sv)", "Slice", "s", slice); 29 register_machine( const char *machine_name, pid_t pid, const char *directory, sd_id128_t uuid, int local_ifindex, const char *slice, CustomMount *mounts, unsigned n_mounts, int kill_signal, char **properties, bool keep_unit, const char *service) argument
|
| /systemd/src/login/ |
| H A D | logind-user.h | 45 char *slice; member in struct:User
|
| H A D | loginctl.c | 308 char *slice; member in struct:UserStatusInfo 342 free(info->slice); 561 { "Slice", "s", NULL, offsetof(UserStatusInfo, slice) }, 615 if (i.slice) { 616 printf("\t Unit: %s\n", i.slice); 617 show_unit_cgroup(bus, "org.freedesktop.systemd1.Slice", i.slice, 0); 621 i.slice,
|
| H A D | logind-dbus.c | 834 /* Now, let's wait until the slice unit and stuff got 2770 const char *slice, 2782 assert(slice); 2795 r = sd_bus_message_append(m, "ss", strempty(slice), "fail"); 2844 const char *slice, 2878 if (!isempty(slice)) { 2879 r = sd_bus_message_append(m, "(sv)", "Slice", "s", slice); 2768 manager_start_slice( Manager *manager, const char *slice, const char *description, const char *after, const char *after2, uint64_t tasks_max, sd_bus_error *error, char **job) argument 2840 manager_start_scope( Manager *manager, const char *scope, pid_t pid, const char *slice, const char *description, const char *after, const char *after2, uint64_t tasks_max, sd_bus_error *error, char **job) argument
|
| /systemd/src/core/ |
| H A D | unit-printf.c | 118 if (UNIT_ISSET(u->slice)) { 119 Unit *slice; local 121 slice = UNIT_DEREF(u->slice); 123 if (slice->cgroup_path) 124 n = strdup(slice->cgroup_path); 126 n = unit_default_cgroup_path(slice); 233 * %r where units in this slice are placed in the cgroup tree
|
| H A D | dbus-unit.c | 1085 Unit *slice; local 1089 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "The slice property is only available for units with control groups."); 1091 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Slice may not be set for slice units."); 1093 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Cannot set slice for init.scope"); 1102 r = manager_load_unit(u->manager, s, NULL, error, &slice); 1106 if (slice->type != UNIT_SLICE) 1107 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Unit name '%s' is not a slice", s); 1110 r = unit_set_slice(u, slice);
|
| H A D | cgroup.c | 581 if (UNIT_DEREF(member->slice) != u) 598 * require, i.e. the members mask of the unit's parent slice 601 if (UNIT_ISSET(u->slice)) 602 return unit_get_members_mask(UNIT_DEREF(u->slice)); 669 if (UNIT_ISSET(u->slice)) { 670 Unit *s = UNIT_DEREF(u->slice); 706 u = UNIT_DEREF(u->slice); 713 _cleanup_free_ char *escaped = NULL, *slice = NULL; local 721 if (UNIT_ISSET(u->slice) && !unit_has_name(UNIT_DEREF(u->slice), SPECIAL_ROOT_SLIC 966 Unit *slice; local [all...] |
| H A D | unit.h | 131 UnitRef slice; member in struct:Unit 259 #include "slice.h" 487 int unit_set_slice(Unit *u, Unit *slice);
|
| H A D | load-fragment.c | 2773 Unit *u = userdata, *slice = NULL; local 2787 r = manager_load_unit(u->manager, k, NULL, NULL, &slice); 2789 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to load slice unit %s. Ignoring.", k); 2793 r = unit_set_slice(u, slice); 2795 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to assign slice %s to unit %s. Ignoring.", slice->id, u->id);
|
| H A D | unit.c | 558 unit_ref_unset(&u->slice); 1133 if (UNIT_ISSET(u->slice)) 1134 return unit_add_two_dependencies(u, UNIT_AFTER, UNIT_REQUIRES, UNIT_DEREF(u->slice), true); 2352 int unit_set_slice(Unit *u, Unit *slice) { argument 2354 assert(slice); 2356 /* Sets the unit slice if it has not been set before. Is extra 2359 * (since the parent slice is derived from the name). Make 2360 * sure the unit we set is actually a slice. */ 2371 if (slice->type != UNIT_SLICE) 2375 !unit_has_name(slice, SPECIAL_ROOT_SLIC 2391 Unit *slice; local [all...] |
| /systemd/src/libsystemd/sd-bus/ |
| H A D | bus-creds.h | 61 char *slice; member in struct:sd_bus_creds
|
| /systemd/src/test/ |
| H A D | test-cgroup-util.c | 65 check_p_g_u("/system.slice/foobar.service/sdfdsaf", 0, "foobar.service"); 66 check_p_g_u("/system.slice/getty@tty5.service", 0, "getty@tty5.service"); 67 check_p_g_u("/system.slice/getty@tty5.service/aaa/bbb", 0, "getty@tty5.service"); 68 check_p_g_u("/system.slice/getty@tty5.service/", 0, "getty@tty5.service"); 69 check_p_g_u("/system.slice/getty@tty6.service/tty5", 0, "getty@tty6.service"); 71 check_p_g_u("/system.slice/getty####@tty6.service/xxx", -ENXIO, NULL); 72 check_p_g_u("/system.slice/system-waldo.slice/foobar.service/sdfdsaf", 0, "foobar.service"); 73 check_p_g_u("/system.slice/system-waldo.slice/_cp 188 _cleanup_free_ char *path = NULL, *path_shifted = NULL, *session = NULL, *unit = NULL, *user_unit = NULL, *machine = NULL, *slice = NULL; local [all...] |
| /systemd/src/basic/ |
| H A D | unit-name.c | 736 int slice_build_parent_slice(const char *slice, char **ret) { argument 740 assert(slice); 743 if (!slice_name_is_valid(slice)) 746 if (streq(slice, "-.slice")) { 751 s = strdup(slice); 757 strcpy(dash, ".slice"); 759 r = free_and_strdup(&s, "-.slice"); 770 int slice_build_subslice(const char *slice, const char*name, char **ret) { argument 773 assert(slice); [all...] |
| H A D | cgroup-util.c | 1281 if (n < strlen("x.slice")) 1284 if (memcmp(p + n - 6, ".slice", 6) == 0) { 1301 /* Skips over all slice assignments */ 1331 if (endswith(unit, ".slice")) { 1547 _cleanup_free_ char *slice = NULL; local 1553 r = cg_path_get_slice(path, &slice); 1557 start = startswith(slice, "user-"); 1560 end = endswith(start, ".slice"); 1582 int cg_path_get_slice(const char *p, char **slice) { argument 1586 assert(slice); 1618 cg_pid_get_slice(pid_t pid, char **slice) argument 1631 cg_path_get_user_slice(const char *p, char **slice) argument 1645 cg_pid_get_user_slice(pid_t pid, char **slice) argument [all...] |
| /systemd/src/coredump/ |
| H A D | coredumpctl.c | 368 *slice = NULL, *cgroup = NULL, *owner_uid = NULL, local 389 retrieve(d, l, "COREDUMP_SLICE", &slice); 480 if (slice) 481 fprintf(file, " Slice: %s\n", slice);
|
| /systemd/src/machine/ |
| H A D | machined-dbus.c | 1281 const char *slice, 1312 if (!isempty(slice)) { 1313 r = sd_bus_message_append(m, "(sv)", "Slice", "s", slice); 1277 manager_start_scope( Manager *manager, const char *scope, pid_t pid, const char *slice, const char *description, sd_bus_message *more_properties, sd_bus_error *error, char **job) argument
|
| /systemd/src/run/ |
| H A D | run.c | 98 " --slice=SLICE Run in the specified slice\n" 160 { "slice", required_argument, NULL, ARG_SLICE }, 436 _cleanup_free_ char *slice; local 438 r = unit_name_mangle_with_suffix(arg_slice, UNIT_NAME_NOGLOB, ".slice", &slice); 442 r = sd_bus_message_append(m, "(sv)", "Slice", "s", slice);
|
| /systemd/src/libsystemd/sd-login/ |
| H A D | sd-login.c | 90 _public_ int sd_pid_get_slice(pid_t pid, char **slice) { argument 93 assert_return(slice, -EINVAL); 95 return cg_pid_get_slice(pid, slice); 98 _public_ int sd_pid_get_user_slice(pid_t pid, char **slice) { argument 101 assert_return(slice, -EINVAL); 103 return cg_pid_get_user_slice(pid, slice); 210 _public_ int sd_peer_get_slice(int fd, char **slice) { argument 215 assert_return(slice, -EINVAL); 221 return cg_pid_get_slice(ucred.pid, slice); 224 _public_ int sd_peer_get_user_slice(int fd, char **slice) { argument [all...] |