/systemd-251/src/test/ |
D | test-hashmap-plain.c | 36 r = hashmap_get(m, "key 3"); in TEST() 40 r = hashmap_get(m, "key 5"); in TEST() 73 r = hashmap_get(copy, "key 1"); in TEST() 75 r = hashmap_get(copy, "key 2"); in TEST() 77 r = hashmap_get(copy, "key 3"); in TEST() 79 r = hashmap_get(copy, "key 4"); in TEST() 149 r = hashmap_get(n, "key 3"); in TEST() 151 r = hashmap_get(n, "key 4"); in TEST() 153 r = hashmap_get(m, "key 3"); in TEST() 188 r = hashmap_get(m, "key 1"); in TEST() [all …]
|
D | test-engine.c | 187 assert_se(!hashmap_get(unit_get_dependencies(a, UNIT_PROPAGATES_RELOAD_TO), b)); in main() 188 assert_se(!hashmap_get(unit_get_dependencies(b, UNIT_RELOAD_PROPAGATED_FROM), a)); in main() 189 assert_se(!hashmap_get(unit_get_dependencies(a, UNIT_PROPAGATES_RELOAD_TO), c)); in main() 190 assert_se(!hashmap_get(unit_get_dependencies(c, UNIT_RELOAD_PROPAGATED_FROM), a)); in main() 195 assert_se( hashmap_get(unit_get_dependencies(a, UNIT_PROPAGATES_RELOAD_TO), b)); in main() 196 assert_se( hashmap_get(unit_get_dependencies(b, UNIT_RELOAD_PROPAGATED_FROM), a)); in main() 197 assert_se( hashmap_get(unit_get_dependencies(a, UNIT_PROPAGATES_RELOAD_TO), c)); in main() 198 assert_se( hashmap_get(unit_get_dependencies(c, UNIT_RELOAD_PROPAGATED_FROM), a)); in main() 202 assert_se(!hashmap_get(unit_get_dependencies(a, UNIT_PROPAGATES_RELOAD_TO), b)); in main() 203 assert_se(!hashmap_get(unit_get_dependencies(b, UNIT_RELOAD_PROPAGATED_FROM), a)); in main() [all …]
|
D | test-hashmap.c | 119 s = hashmap_get(m, "foo"); in TEST() 128 s = hashmap_get(m, "xxx"); in TEST() 142 s = hashmap_get(m, "foo"); in TEST() 150 s = hashmap_get(m, "xxx"); in TEST()
|
/systemd-251/src/resolve/ |
D | test-resolved-etc-hosts.c | 74 assert_se(bn = hashmap_get(hosts.by_name, "some.where")); in TEST() 81 assert_se(bn = hashmap_get(hosts.by_name, "dash")); in TEST() 86 assert_se(bn = hashmap_get(hosts.by_name, "dash-dash.where-dash")); in TEST() 93 assert_se(!hashmap_get(hosts.by_name, s)); in TEST() 95 assert_se(bn = hashmap_get(hosts.by_name, "before.comment")); in TEST() 103 assert_se(!hashmap_get(hosts.by_name, "within.comment")); in TEST() 104 assert_se(!hashmap_get(hosts.by_name, "within.comment2")); in TEST() 105 assert_se(!hashmap_get(hosts.by_name, "within.comment3")); in TEST() 106 assert_se(!hashmap_get(hosts.by_name, "#")); in TEST() 108 assert_se(!hashmap_get(hosts.by_name, "short.address")); in TEST() [all …]
|
D | resolved-dns-zone.c | 48 first = hashmap_get(z->by_key, i->rr->key); in dns_zone_item_remove_and_free() 55 first = hashmap_get(z->by_name, dns_resource_key_name(i->rr->key)); in dns_zone_item_remove_and_free() 84 LIST_FOREACH(by_key, i, (DnsZoneItem*) hashmap_get(z->by_key, rr->key)) in dns_zone_get() 140 first = hashmap_get(z->by_key, i->rr->key); in dns_zone_link_item() 150 first = hashmap_get(z->by_name, dns_resource_key_name(i->rr->key)); in dns_zone_link_item() 322 first = hashmap_get(z->by_name, dns_resource_key_name(key)); in dns_zone_lookup() 348 first = hashmap_get(z->by_key, key); in dns_zone_lookup() 358 first = hashmap_get(z->by_name, dns_resource_key_name(key)); in dns_zone_lookup() 389 first = hashmap_get(z->by_name, dns_resource_key_name(key)); in dns_zone_lookup() 419 first = hashmap_get(z->by_key, key); in dns_zone_lookup() [all …]
|
D | resolved-etc-hosts.c | 76 item = hashmap_get(hosts->by_address, &address); in parse_line() 134 bn = hashmap_get(hosts->by_name, name); in parse_line() 196 item = hashmap_get(hosts->by_address, local_in_addrs + j); in strip_localhost() 218 n = hashmap_get(hosts->by_name, *i); in strip_localhost() 371 item = hashmap_get(m->etc_hosts.by_address, &k); in manager_etc_hosts_lookup() 418 bn = hashmap_get(m->etc_hosts.by_name, name); in manager_etc_hosts_lookup()
|
D | resolved-dns-cache.c | 106 first = hashmap_get(c->by_key, i->key); in dns_cache_item_unlink_and_free() 123 first = hashmap_get(c->by_key, rr->key); in dns_cache_remove_by_rr() 275 first = hashmap_get(c->by_key, i->key); in dns_cache_link_item() 307 LIST_FOREACH(by_key, i, (DnsCacheItem*) hashmap_get(c->by_key, rr->key)) in dns_cache_get() 761 first = hashmap_get(c->by_key, item->rr->key); in dns_cache_put() 868 i = hashmap_get(c->by_key, k); in dns_cache_get_by_key_follow_cname_dname_nsec() 876 i = hashmap_get(c->by_key, &DNS_RESOURCE_KEY_CONST(k->class, DNS_TYPE_ANY, n)); in dns_cache_get_by_key_follow_cname_dname_nsec() 882 i = hashmap_get(c->by_key, &DNS_RESOURCE_KEY_CONST(k->class, DNS_TYPE_CNAME, n)); in dns_cache_get_by_key_follow_cname_dname_nsec() 891 … i = hashmap_get(c->by_key, &DNS_RESOURCE_KEY_CONST(k->class, DNS_TYPE_DNAME, n)); in dns_cache_get_by_key_follow_cname_dname_nsec() 904 i = hashmap_get(c->by_key, &DNS_RESOURCE_KEY_CONST(k->class, DNS_TYPE_NSEC, n)); in dns_cache_get_by_key_follow_cname_dname_nsec() [all …]
|
D | resolved-dns-trust-anchor.c | 357 old_answer = hashmap_get(d->positive_by_key, rr->key); in dns_trust_anchor_load_positive() 547 a = hashmap_get(d->positive_by_key, key); in dns_trust_anchor_lookup_positive() 611 old_answer = hashmap_get(d->positive_by_key, rr->key); in dns_trust_anchor_remove_revoked() 654 a = hashmap_get(d->positive_by_key, revoked_dnskey->key); in dns_trust_anchor_check_revoked_one() 685 …a = hashmap_get(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(revoked_dnskey->key->class, DNS_TYPE_D… in dns_trust_anchor_check_revoked_one()
|
/systemd-251/src/login/ |
D | logind-core.c | 94 d = hashmap_get(m->devices, sysfs); in manager_add_device() 117 s = hashmap_get(m->seats, id); in manager_add_seat() 137 s = hashmap_get(m->sessions, id); in manager_add_session() 161 u = hashmap_get(m->users, UID_TO_PTR(ur->uid)); in manager_add_user() 217 i = hashmap_get(m->inhibitors, id); in manager_add_inhibitor() 236 b = hashmap_get(m->buttons, name); in manager_add_button() 263 device = hashmap_get(m->devices, syspath); in manager_process_seat_device() 283 seat = hashmap_get(m->seats, sn); in manager_process_seat_device() 329 b = hashmap_get(m->buttons, sysname); in manager_process_button_device() 366 s = hashmap_get(m->sessions_by_leader, PID_TO_PTR(pid)); in manager_get_session_by_pid() [all …]
|
D | logind-seat-dbus.c | 175 session = hashmap_get(s->manager->sessions, name); in method_activate_session() 347 session = hashmap_get(m->sessions, name); in seat_node_enumerator() 364 user = hashmap_get(m->users, UID_TO_PTR(uid)); in seat_node_enumerator()
|
/systemd-251/src/oom/ |
D | test-oomd-util.c | 170 c1 = hashmap_get(h1, cgroup); in test_oomd_cgroup_context_acquire_and_insert() 181 c1 = hashmap_get(h1, cgroup); in test_oomd_cgroup_context_acquire_and_insert() 182 c2 = hashmap_get(h2, cgroup); in test_oomd_cgroup_context_acquire_and_insert() 236 assert_se(c_old = hashmap_get(h_old, "/0.slice")); in test_oomd_update_cgroup_contexts_between_hashmaps() 237 assert_se(c_new = hashmap_get(h_new, "/0.slice")); in test_oomd_update_cgroup_contexts_between_hashmaps() 243 assert_se(c_old = hashmap_get(h_old, "/1.slice")); in test_oomd_update_cgroup_contexts_between_hashmaps() 244 assert_se(c_new = hashmap_get(h_new, "/1.slice")); in test_oomd_update_cgroup_contexts_between_hashmaps() 315 assert_se(c = hashmap_get(h1, "/herp.slice")); in test_oomd_pressure_above() 323 assert_se(c = hashmap_get(h2, "/derp.slice")); in test_oomd_pressure_above() 331 assert_se(c = hashmap_get(h1, "/herp.slice")); in test_oomd_pressure_above() [all …]
|
/systemd-251/src/analyze/ |
D | analyze-critical-chain.c | 63 times = hashmap_get(unit_times_hashmap, *a); in list_dependencies_compare() 66 times = hashmap_get(unit_times_hashmap, *b); in list_dependencies_compare() 99 … times = hashmap_get(unit_times_hashmap, *c); /* lgtm [cpp/inconsistent-null-check] */ in list_dependencies_one() 108 … times = hashmap_get(unit_times_hashmap, *c); /* lgtm [cpp/inconsistent-null-check] */ in list_dependencies_one() 117 … times = hashmap_get(unit_times_hashmap, *c); /* lgtm [cpp/inconsistent-null-check] */ in list_dependencies_one() 177 times = hashmap_get(unit_times_hashmap, id); in list_dependencies()
|
/systemd-251/src/home/ |
D | homed-varlink.c | 102 h = hashmap_get(m->homes_by_uid, UID_TO_PTR(p.uid)); in vl_method_get_user_record() 104 h = hashmap_get(m->homes_by_name, p.user_name); in vl_method_get_user_record() 217 h = hashmap_get(m->homes_by_uid, UID_TO_PTR((uid_t) p.gid)); in vl_method_get_group_record() 219 h = hashmap_get(m->homes_by_name, p.group_name); in vl_method_get_group_record() 286 h = hashmap_get(m->homes_by_name, p.user_name); in vl_method_get_memberships()
|
D | homed-manager-bus.c | 85 h = hashmap_get(m->homes_by_name, user_name); in method_get_home_by_name() 124 h = hashmap_get(m->homes_by_uid, UID_TO_PTR(uid)); in method_get_home_by_uid() 215 h = hashmap_get(m->homes_by_name, user_name); in method_get_user_record_by_name() 255 h = hashmap_get(m->homes_by_uid, UID_TO_PTR(uid)); in method_get_user_record_by_uid() 290 h = hashmap_get(m->homes_by_name, user_name); in generic_home_method() 321 other = hashmap_get(m->homes_by_name, hr->user_name); in validate_and_allocate_home() 362 other = hashmap_get(m->homes_by_uid, UID_TO_PTR(hr->uid)); in validate_and_allocate_home() 521 h = hashmap_get(m->homes_by_name, hr->user_name); in method_update_home()
|
/systemd-251/src/shared/ |
D | bus-unit-procs.c | 36 cg = hashmap_get(cgroups, path); in add_cgroup() 148 cg = hashmap_get(cgroups, cgroup_path); in dump_processes() 175 name = hashmap_get(cg->pids, PID_TO_PTR(pids[i])); in dump_processes() 300 name = hashmap_get(names, PID_TO_PTR(pids[k])); in dump_extra_processes()
|
/systemd-251/src/machine/ |
D | machined-dbus.c | 104 machine = hashmap_get(m->machines, name); in method_get_machine() 301 if (hashmap_get(manager->machines, name)) in method_create_or_register_machine() 443 machine = hashmap_get(m->machines, name); in redirect_method_to_machine() 907 machine = hashmap_get(m->machines, name); in method_map_from_machine_user() 966 machine = hashmap_get(m->machines, name); in method_map_from_machine_group() 1233 machine = hashmap_get(m->machine_units, unit); in match_job_removed() 1281 machine = hashmap_get(m->machine_units, unit); in match_properties_changed() 1304 machine = hashmap_get(m->machine_units, unit); in match_unit_removed() 1479 mm = hashmap_get(m->machine_leaders, PID_TO_PTR(pid)); in manager_get_machine_by_pid() 1485 mm = hashmap_get(m->machine_units, unit); in manager_get_machine_by_pid() [all …]
|
/systemd-251/src/sysupdate/ |
D | sysupdate-cache.c | 43 … if (hashmap_size(*web_cache) >= (size_t) (WEB_CACHE_ENTRIES_MAX + !!hashmap_get(*web_cache, url))) in web_cache_add_item() 80 i = hashmap_get(web_cache, url); in web_cache_get_item()
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-genl.c | 295 f = hashmap_get(nl->genl_family_by_name, name); in genl_family_get_by_name() 307 ctrl = hashmap_get(nl->genl_family_by_name, CTRL_GENL_NAME); in genl_family_get_by_name() 324 f = hashmap_get(nl->genl_family_by_id, UINT_TO_PTR(id)); in genl_family_get_by_id() 442 p = hashmap_get(f->multicast_group_by_name, name); in genl_family_get_multicast_group_id_by_name()
|
/systemd-251/src/core/ |
D | transaction.c | 33 while ((j = hashmap_get(tr->jobs, u))) in transaction_delete_unit() 379 … if (!delete && hashmap_get(tr->jobs, k->unit) && !unit_matters_to_anchor(k->unit, k)) in transaction_verify_order_one() 450 o = hashmap_get(tr->jobs, u); in transaction_verify_order_one() 628 if (hashmap_get(tr->jobs, j->unit)) in transaction_apply() 800 f = hashmap_get(tr->jobs, unit); in transaction_add_one_job() 1117 if (hashmap_get(tr->jobs, u)) in transaction_add_isolate_jobs() 1142 if (hashmap_get(tr->jobs, trigger)) in transaction_add_triggering_jobs()
|
/systemd-251/src/tmpfiles/ |
D | offline-passwd.c | 129 found = hashmap_get(*cache, user); in name_to_uid_offline() 156 found = hashmap_get(*cache, group); in name_to_gid_offline()
|
/systemd-251/src/network/ |
D | test-network.c | 112 … assert_se(streq(hashmap_get(manager->route_table_names_by_number, UINT32_TO_PTR(number)), name)); in test_route_tables_one() 113 … assert_se(PTR_TO_UINT32(hashmap_get(manager->route_table_numbers_by_name, name)) == number); in test_route_tables_one() 139 assert_se(!hashmap_get(manager->route_table_numbers_by_name, "ddd")); in test_route_tables()
|
D | networkd-wiphy.c | 57 w = hashmap_get(manager->wiphy_by_index, UINT32_TO_PTR(index)); in wiphy_get_by_index() 73 w = hashmap_get(manager->wiphy_by_name, name); in wiphy_get_by_name()
|
/systemd-251/src/libudev/ |
D | libudev-list.c | 98 udev_list_entry_free(hashmap_get(list->unique_entries, entry->name)); in udev_list_entry_add() 206 return hashmap_get(list_entry->list->unique_entries, name); in udev_list_entry_get_by_name()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-track.c | 191 i = hashmap_get(track->names, name); in sd_bus_track_add_name() 269 i = hashmap_get(track->names, name); in sd_bus_track_remove_name() 491 i = hashmap_get(track->names, name); in sd_bus_track_count_name()
|
D | bus-objects.c | 935 n = hashmap_get(bus->nodes, path); in introspect_path() 1060 n = hashmap_get(bus->nodes, prefix); in object_manager_serialize_path() 1289 n = hashmap_get(bus->nodes, p); in object_find_and_run() 1308 v = hashmap_get(bus->vtable_methods, &vtable_key); in object_find_and_run() 1335 v = hashmap_get(bus->vtable_properties, &vtable_key); in object_find_and_run() 1485 n = hashmap_get(bus->nodes, path); in bus_node_allocate() 1557 n = hashmap_get(bus->nodes, path); in bus_find_parent_object_manager() 1569 n = hashmap_get(bus->nodes, prefix); in bus_find_parent_object_manager() 2070 n = hashmap_get(bus->nodes, prefix); in emit_properties_changed_on_interface() 2117 v = hashmap_get(bus->vtable_properties, &key); in emit_properties_changed_on_interface() [all …]
|