/systemd/src/basic/ |
H A D | set.h | 67 int set_merge(Set *s, Set *other); 73 static inline int set_move(Set *s, Set *other) { argument 74 return internal_hashmap_move(HASHMAP_BASE(s), HASHMAP_BASE(other)); 77 static inline int set_move_one(Set *s, Set *other, const void *key) { argument 78 return internal_hashmap_move_one(HASHMAP_BASE(s), HASHMAP_BASE(other), key);
|
H A D | hashmap.h | 207 int internal_hashmap_merge(Hashmap *h, Hashmap *other); 208 #define hashmap_merge(h, other) internal_hashmap_merge(PLAIN_HASHMAP(h), PLAIN_HASHMAP(other)) 209 #define ordered_hashmap_merge(h, other) hashmap_merge(h, other) 219 int internal_hashmap_move(HashmapBase *h, HashmapBase *other); 221 static inline int hashmap_move(Hashmap *h, Hashmap *other) { argument 222 return internal_hashmap_move(HASHMAP_BASE(h), HASHMAP_BASE(other)); 224 static inline int ordered_hashmap_move(OrderedHashmap *h, OrderedHashmap *other) { argument 225 return internal_hashmap_move(HASHMAP_BASE(h), HASHMAP_BASE(other)); 229 hashmap_move_one(Hashmap *h, Hashmap *other, const void *key) argument 232 ordered_hashmap_move_one(OrderedHashmap *h, OrderedHashmap *other, const void *key) argument [all...] |
H A D | hashmap.c | 80 * http://www.pvk.ca/Blog/2013/11/26/the-other-robin-hood-hashing/ 668 /* ... or remove entries other than the current one */ 1563 int internal_hashmap_merge(Hashmap *h, Hashmap *other) { argument 1569 HASHMAP_FOREACH_IDX(idx, HASHMAP_BASE(other), i) { 1570 struct plain_hashmap_entry *pe = plain_bucket_at(other, idx); 1581 int set_merge(Set *s, Set *other) { argument 1587 HASHMAP_FOREACH_IDX(idx, HASHMAP_BASE(other), i) { 1588 struct set_entry *se = set_bucket_at(other, idx); 1612 * The same as hashmap_merge(), but every new item from other is moved to h. 1613 * Keys already in h are skipped and stay in other 1617 internal_hashmap_move(HashmapBase *h, HashmapBase *other) argument 1662 internal_hashmap_move_one(HashmapBase *h, HashmapBase *other, const void *key) argument [all...] |
/systemd/src/core/ |
H A D | target.c | 60 Unit *other; local 72 SET_FOREACH(other, UNIT(t)->dependencies[deps[k]], i) { 73 r = unit_add_default_target_dependency(other, UNIT(t));
|
H A D | transaction.c | 89 static void transaction_merge_and_delete_job(Transaction *tr, Job *j, Job *other, JobType t) { argument 93 assert(other); 94 assert(j->unit == other->unit); 97 /* Merges 'other' into 'j' and then deletes 'other'. */ 101 j->irreversible = j->irreversible || other->irreversible; 102 j->matters_to_anchor = j->matters_to_anchor || other->matters_to_anchor; 106 LIST_FOREACH(subject, l, other->subject_list) { 107 assert(l->subject == other); 117 j->subject_list = other 812 Job *other = j->object_list->matters ? j->object_list->subject : NULL; local [all...] |
H A D | device.c | 110 /* In contrast to all other unit types we timeout jobs waiting 113 * happen for the other units since their operations time out 537 Device *other, *first = NULL; local 545 for (other = d->same_sysfs_next; other; other = other->same_sysfs_next) 546 if (startswith(UNIT(other)->id, "sys-")) 547 return UNIT(other); 549 for (other 560 Device *d = DEVICE(u), *other; local [all...] |
H A D | path.c | 697 static void path_trigger_notify(Unit *u, Unit *other) { argument 701 assert(other); 706 if (other->load_state != UNIT_LOADED) 710 UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(other))) {
|
H A D | timer.c | 733 static void timer_trigger_notify(Unit *u, Unit *other) { argument 738 assert(other); 740 if (other->load_state != UNIT_LOADED) 760 if (UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(other))) {
|
H A D | busname.c | 558 Unit *other; local 582 SET_FOREACH(other, UNIT(n)->dependencies[UNIT_TRIGGERS], i) 583 if (unit_active_or_pending(other)) { 944 static void busname_trigger_notify(Unit *u, Unit *other) { argument 948 assert(other); 953 if (other->start_limit_hit) { 958 if (other->load_state != UNIT_LOADED || other->type != UNIT_SERVICE) 961 if (IN_SET(SERVICE(other)->state, 967 if (SERVICE(other) [all...] |
H A D | dbus-unit.c | 833 * other cases we report as-is. */ 1131 const char *other; local 1147 while ((r = sd_bus_message_read(message, "s", &other)) > 0) { 1148 if (!unit_name_is_valid(other, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) 1149 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid unit name %s", other); 1154 r = unit_add_dependency_by_name(u, d, other, NULL, true); 1158 label = strjoin(name, "-", other, NULL); 1162 unit_write_drop_in_format(u, mode, label, "[Unit]\n%s=%s\n", name, other);
|
H A D | job.c | 161 * JOB_RESTART jobs on the other hand can be merged, because they get 168 static void job_merge_into_installed(Job *j, Job *other) { argument 170 assert(j->unit == other->unit); 173 job_type_merge_and_collapse(&j->type, other->type, j->unit); 175 assert(other->type == JOB_NOP); 177 j->irreversible = j->irreversible || other->irreversible; 178 j->ignore_order = j->ignore_order || other->ignore_order; 438 Unit *other; local 469 SET_FOREACH(other, j->unit->dependencies[UNIT_AFTER], i) 470 if (other 809 Unit *other; local 828 Unit *other; local [all...] |
H A D | swap.c | 445 * all other names of this block device */ 485 Swap *other; local 510 /* If there other units for the same device node have a job 515 LIST_FOREACH_OTHERS(same_devnode, other, s) 516 if (UNIT(other)->job) 517 job_add_to_run_queue(UNIT(other)->job); 817 Swap *s = SWAP(u), *other; local 841 * until that other job has finished. */ 842 LIST_FOREACH_OTHERS(same_devnode, other, s) 843 if (UNIT(other) 1200 Swap *other, *first = NULL; local 1236 Swap *s = SWAP(u), *other; local [all...] |
H A D | mount.c | 243 Unit *other; local 251 /* Adds in links to other mount points that might lie further 263 /* Adds in links to other mount points that might be needed 276 /* Adds in links to other units that use this path or paths 279 SET_FOREACH(other, s, i) { 281 if (other->load_state != UNIT_LOADED) 284 if (other == UNIT(m)) 287 r = unit_add_dependency(other, UNIT_AFTER, UNIT(m), true); 293 r = unit_add_dependency(other, UNIT_REQUIRES, UNIT(m), true); 1211 * top of each other [all...] |
H A D | socket.c | 806 * other process we spawned might still have a 1920 Unit *other; local 1925 SET_FOREACH(other, UNIT(s)->dependencies[UNIT_TRIGGERS], i) 1926 if (unit_active_or_pending(other)) { 2717 static void socket_trigger_notify(Unit *u, Unit *other) { argument 2721 assert(other); 2728 if (other->start_limit_hit) { 2733 if (other->load_state != UNIT_LOADED || other->type != UNIT_SERVICE) 2736 if (IN_SET(SERVICE(other) [all...] |
H A D | load-fragment.c | 1745 * all other timeouts. */ 3594 /* First try to merge in the other name into our 3598 Unit *other; local 3600 /* Hmm, we couldn't merge the other unit into 3601 * ours? Then let's try it the other way 3604 other = manager_get_unit((*u)->manager, k); 3607 if (other) { 3608 r = unit_merge(other, *u); 3610 *u = other;
|
H A D | manager.c | 813 Unit *other; local 833 SET_FOREACH(other, u->dependencies[UNIT_REFERENCED_BY], i) { 834 unit_gc_sweep(other, gc_marker); 836 if (other->gc_marker == gc_marker + GC_OFFSET_GOOD) 839 if (other->gc_marker != gc_marker + GC_OFFSET_BAD)
|
H A D | unit.c | 75 static void maybe_warn_about_dependency(Unit *u, const char *other, UnitDependency dependency); 390 Unit *other; local 397 SET_FOREACH(other, s, i) { 401 set_remove(other->dependencies[d], u); 403 unit_add_to_gc_queue(other); 585 static int complete_move(Set **s, Set **other) { argument 589 assert(other); 591 if (!*other) 595 r = set_move(*s, *other); 599 *s = *other; 606 merge_names(Unit *u, Unit *other) argument 628 reserve_dependencies(Unit *u, Unit *other, UnitDependency d) argument 649 merge_dependencies(Unit *u, Unit *other, const char *other_id, UnitDependency d) argument 688 unit_merge(Unit *u, Unit *other) argument 765 Unit *other; local 935 Unit *other; local 977 Unit *other; local 1640 Unit *other; local 1680 Unit *other; local 1725 Unit *other; local 1756 Unit *other; local 1769 Unit *other; local 1790 Unit *other; local 1810 Unit *other; local 2134 maybe_warn_about_dependency(Unit *u, const char *other, UnitDependency dependency) argument 2147 unit_add_dependency(Unit *u, UnitDependency d, Unit *other, bool add_reference) argument 2250 unit_add_two_dependencies(Unit *u, UnitDependency d, UnitDependency e, Unit *other, bool add_reference) argument 2299 Unit *other; local 2318 Unit *other; local 3659 Unit *other; local [all...] |
/systemd/src/backlight/ |
H A D | backlight.c | 158 _cleanup_udev_device_unref_ struct udev_device *other; local 162 other = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item)); 163 if (!other) 166 if (same_device(device, other)) 169 v = udev_device_get_sysattr_value(other, "type"); 177 other_parent = find_pci_or_platform_parent(other); 186 udev_device_get_sysname(other)); 192 /* The other is connected to the platform bus 197 udev_device_get_sysname(other)); 372 * reliable, since it might not see other device [all...] |
/systemd/src/shared/ |
H A D | condition.c | 287 struct stat usr, other; local 297 /* Any other failure means we should allow the condition to be true, 305 if (lstat(p, &other) < 0) 311 return usr.st_mtim.tv_sec > other.st_mtim.tv_sec || 312 (usr.st_mtim.tv_sec == other.st_mtim.tv_sec && usr.st_mtim.tv_nsec > other.st_mtim.tv_nsec);
|
/systemd/src/resolve/ |
H A D | resolved-dns-answer.c | 150 * and the other is not. See RFC 2181, Section 467 bool found = false, other = false; local 484 other = true; 486 if (found && other) 493 if (!other) { 553 bool found = false, other = false; local 570 other = true; 572 if (found && other) 579 if (!other) { 708 /* Order all other record [all...] |
H A D | resolved-dns-transaction.c | 341 /* We need to be careful when notifying other 342 * transactions, as that might destroy other 645 /* We handle DNSSEC failures different from other errors, as we care about the DNSSEC 767 * Or in other words: if we get at least one positive reply in a message we patch NXDOMAIN to become SUCCESS, 805 /* For LLMNR we will not accept any packets from other 827 /* For mDNS we will not accept any packets from other interfaces */ 1296 DnsTransaction *other; local 1328 LIST_FOREACH(transactions_by_scope, other, t->scope->transactions) { 1331 if (other == t) 1334 if (other [all...] |
/systemd/src/sysv-generator/ |
H A D | sysv-generator.c | 687 SysvStub *other; local 699 HASHMAP_FOREACH(other, all_services, j) { 700 if (s == other) 703 if (!other->loaded) 706 if (other->sysv_start_priority < 0) 711 if (s->has_lsb && other->has_lsb) 714 if (other->sysv_start_priority < s->sysv_start_priority) { 715 r = strv_extend(&s->after, other->name); 719 } else if (other->sysv_start_priority > s->sysv_start_priority) { 720 r = strv_extend(&s->before, other [all...] |