Lines Matching refs:slice
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) {
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_SLICE))
2378 if (UNIT_DEREF(u->slice) == slice)
2381 if (UNIT_ISSET(u->slice))
2384 unit_ref_set(&u->slice, slice);
2391 Unit *slice;
2396 if (UNIT_ISSET(u->slice))
2403 * own per-template slice */
2410 * "-" which has a special meaning for slice units,
2417 b = strjoin("system-", escaped, ".slice", NULL);
2419 b = strappend(escaped, ".slice");
2430 r = manager_load_unit(u->manager, slice_name, NULL, NULL, &slice);
2434 return unit_set_slice(u, slice);
2440 if (!UNIT_ISSET(u->slice))
2443 return UNIT_DEREF(u->slice)->id;
3745 * types such as slice, we are generally fine with units that