Searched refs:hashmap_replace (Results 1 – 16 of 16) sorted by relevance
/systemd-251/src/resolve/ |
D | resolved-dns-zone.c | 51 assert_se(hashmap_replace(z->by_key, first->rr->key, first) >= 0); in dns_zone_item_remove_and_free() 58 … assert_se(hashmap_replace(z->by_name, dns_resource_key_name(first->rr->key), first) >= 0); in dns_zone_item_remove_and_free() 143 assert_se(hashmap_replace(z->by_key, first->rr->key, first) >= 0); in dns_zone_link_item() 153 … assert_se(hashmap_replace(z->by_name, dns_resource_key_name(first->rr->key), first) >= 0); in dns_zone_link_item()
|
D | resolved-dns-trust-anchor.c | 364 r = hashmap_replace(d->positive_by_key, rr->key, answer); in dns_trust_anchor_load_positive() 636 r = hashmap_replace(d->positive_by_key, item->rr->key, new_answer); in dns_trust_anchor_remove_revoked()
|
D | resolved-dns-cache.c | 110 assert_se(hashmap_replace(c->by_key, first->key, first) >= 0); in dns_cache_item_unlink_and_free() 291 assert_se(hashmap_replace(c->by_key, first->key, first) >= 0); in dns_cache_link_item() 379 assert_se(hashmap_replace(c->by_key, rr->key, i) >= 0); in dns_cache_item_update_positive()
|
D | resolved-dns-transaction.c | 118 hashmap_replace(t->scope->transactions_by_key, first->key, first); in dns_transaction_free() 300 r = hashmap_replace(s->transactions_by_key, first->key, first); in dns_transaction_new()
|
/systemd-251/src/basic/ |
D | hashmap.h | 169 int hashmap_replace(Hashmap *h, const void *key, void *value); 171 return hashmap_replace(PLAIN_HASHMAP(h), key, value); in ordered_hashmap_replace()
|
D | hashmap.c | 1292 int hashmap_replace(Hashmap *h, const void *key, void *value) { in hashmap_replace() function
|
/systemd-251/src/test/ |
D | test-hashmap-plain.c | 13 TEST(hashmap_replace) { in TEST() argument 35 hashmap_replace(m, "key 3", val1); in TEST() 39 hashmap_replace(m, "key 5", val5); in TEST()
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-socket.c | 109 return hashmap_replace(nl->broadcast_group_refs, UINT_TO_PTR(group), UINT_TO_PTR(n_ref)); in broadcast_group_set_ref()
|
/systemd-251/src/core/ |
D | transaction.c | 823 if (hashmap_replace(tr->jobs, unit, f) < 0) { in transaction_add_one_job() 844 hashmap_replace(tr->jobs, j->unit, j->transaction_next); in transaction_unlink_job()
|
D | manager-serialize.c | 280 r = hashmap_replace(*uid_refs, UID_TO_PTR(uid), UINT32_TO_PTR(c)); in manager_deserialize_uid_refs_one_internal()
|
D | swap.c | 115 hashmap_replace(swaps, first->devnode, first); in swap_set_devnode() 130 return hashmap_replace(swaps, first->devnode, first); in swap_set_devnode()
|
D | device.c | 82 r = hashmap_replace(UNIT(d)->manager->devices_by_sysfs, copy, first); in device_set_sysfs()
|
D | unit.c | 885 assert_se(hashmap_replace(u->manager->units, name, u) == 0); in unit_merge_names() 2835 r = hashmap_replace(u->manager->watch_pids, PID_TO_PTR(-pid), new_array); in unit_watch_pid()
|
D | manager.c | 4326 return hashmap_replace(*uid_refs, UID_TO_PTR(uid), UINT32_TO_PTR(c)); in manager_ref_uid_internal()
|
/systemd-251/src/shared/ |
D | varlink.c | 1183 … (void) hashmap_replace(v->server->by_uid, UID_TO_PTR(v->ucred.uid), UINT_TO_PTR(c - 1)); in varlink_detach_server() 2120 r = hashmap_replace(server->by_uid, UID_TO_PTR(ucred->uid), UINT_TO_PTR(c + 1)); in count_connection()
|
/systemd-251/src/network/ |
D | networkd-link.c | 2169 r = hashmap_replace(link->manager->links_by_hw_addr, &link->hw_addr, link); in link_update_hardware_address()
|