Lines Matching refs:dependencies

401                         set_remove(other->dependencies[d], u);
513 bidi_set_free(u, u->dependencies[d]);
640 if (!u->dependencies[d])
644 n_reserve = set_size(other->dependencies[d]) - !!set_get(other->dependencies[d], u);
646 return set_reserve(u->dependencies[d], n_reserve);
659 SET_FOREACH(back, other->dependencies[d], i) {
663 /* Do not add dependencies between u and itself */
665 if (set_remove(back->dependencies[k], other))
668 r = set_remove_and_put(back->dependencies[k], other, u);
670 set_remove(back->dependencies[k], other);
677 /* Also do not move dependencies on u to itself */
678 back = set_remove(other->dependencies[d], u);
683 assert_se(complete_move(&u->dependencies[d], &other->dependencies[d]) == 0);
685 other->dependencies[d] = set_free(other->dependencies[d]);
745 /* Merge dependencies */
979 SET_FOREACH(other, u->dependencies[d], i)
1088 /* If either side wants no automatic dependencies, then let's
1095 if (set_get(target->dependencies[UNIT_BEFORE], u))
1118 SET_FOREACH(target, u->dependencies[deps[k]], i) {
1162 * it exists. If so the dependencies
1254 if (u->on_failure_job_mode == JOB_ISOLATE && set_size(u->dependencies[UNIT_ON_FAILURE]) > 1) {
1255 log_unit_error(u, "More than one OnFailure= dependencies specified but OnFailureJobMode=isolate set. Refusing.");
1657 SET_FOREACH(other, u->dependencies[needed_dependencies[j]], i)
1692 SET_FOREACH(other, u->dependencies[UNIT_BINDS_TO], i) {
1730 SET_FOREACH(other, u->dependencies[UNIT_REQUIRES], i)
1731 if (!set_get(u->dependencies[UNIT_AFTER], other) &&
1735 SET_FOREACH(other, u->dependencies[UNIT_BINDS_TO], i)
1736 if (!set_get(u->dependencies[UNIT_AFTER], other) &&
1740 SET_FOREACH(other, u->dependencies[UNIT_WANTS], i)
1741 if (!set_get(u->dependencies[UNIT_AFTER], other) &&
1745 SET_FOREACH(other, u->dependencies[UNIT_CONFLICTS], i)
1749 SET_FOREACH(other, u->dependencies[UNIT_CONFLICTED_BY], i)
1762 SET_FOREACH(other, u->dependencies[UNIT_BOUND_BY], i)
1775 SET_FOREACH(other, u->dependencies[UNIT_REQUIRES], i)
1778 SET_FOREACH(other, u->dependencies[UNIT_WANTS], i)
1781 SET_FOREACH(other, u->dependencies[UNIT_REQUISITE], i)
1784 SET_FOREACH(other, u->dependencies[UNIT_BINDS_TO], i)
1795 if (set_size(u->dependencies[UNIT_ON_FAILURE]) <= 0)
1798 log_unit_info(u, "Triggering OnFailure= dependencies.");
1800 SET_FOREACH(other, u->dependencies[UNIT_ON_FAILURE], i) {
1815 SET_FOREACH(other, u->dependencies[UNIT_TRIGGERED_BY], i)
1948 * or stop dependencies. We skip that step when
2183 /* We won't allow dependencies on ourselves. We will not
2190 r = set_ensure_allocated(&u->dependencies[d], NULL);
2195 r = set_ensure_allocated(&other->dependencies[inverse_table[d]], NULL);
2201 r = set_ensure_allocated(&u->dependencies[UNIT_REFERENCES], NULL);
2205 r = set_ensure_allocated(&other->dependencies[UNIT_REFERENCED_BY], NULL);
2210 q = set_put(u->dependencies[d], other);
2215 v = set_put(other->dependencies[inverse_table[d]], u);
2223 w = set_put(u->dependencies[UNIT_REFERENCES], other);
2229 r = set_put(other->dependencies[UNIT_REFERENCED_BY], u);
2239 set_remove(u->dependencies[d], other);
2242 set_remove(other->dependencies[inverse_table[d]], u);
2245 set_remove(u->dependencies[UNIT_REFERENCES], other);
2874 * container), don't create dependencies on them. */
3670 SET_FOREACH(other, u->dependencies[UNIT_JOINS_NAMESPACE_OF], i) {