Lines Matching refs:slice
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;
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) {
1586 assert(slice);
1588 /* Finds the right-most slice unit from the beginning, but
1589 * stops before we come to the first non-slice unit. */
1602 s = strdup("-.slice");
1606 *slice = s;
1610 return cg_path_decode_unit(e, slice);
1618 int cg_pid_get_slice(pid_t pid, char **slice) {
1622 assert(slice);
1628 return cg_path_get_slice(cgroup, slice);
1631 int cg_path_get_user_slice(const char *p, char **slice) {
1634 assert(slice);
1641 * slice, so let's just use the same parser from here on. */
1642 return cg_path_get_slice(t, slice);
1645 int cg_pid_get_user_slice(pid_t pid, char **slice) {
1649 assert(slice);
1655 return cg_path_get_user_slice(cgroup, slice);
1757 if (streq(unit, "-.slice")) {
1770 if (!endswith(unit, ".slice"))
1785 char n[dash - p + sizeof(".slice")];
1791 strcpy(stpncpy(n, p, dash - p), ".slice");