Home
last modified time | relevance | path

Searched refs:hashmap_replace (Results 1 – 16 of 16) sorted by relevance

/systemd-251/src/resolve/
Dresolved-dns-zone.c51 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()
Dresolved-dns-trust-anchor.c364 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()
Dresolved-dns-cache.c110 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()
Dresolved-dns-transaction.c118 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/
Dhashmap.h169 int hashmap_replace(Hashmap *h, const void *key, void *value);
171 return hashmap_replace(PLAIN_HASHMAP(h), key, value); in ordered_hashmap_replace()
Dhashmap.c1292 int hashmap_replace(Hashmap *h, const void *key, void *value) { in hashmap_replace() function
/systemd-251/src/test/
Dtest-hashmap-plain.c13 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/
Dnetlink-socket.c109 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/
Dtransaction.c823 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()
Dmanager-serialize.c280 r = hashmap_replace(*uid_refs, UID_TO_PTR(uid), UINT32_TO_PTR(c)); in manager_deserialize_uid_refs_one_internal()
Dswap.c115 hashmap_replace(swaps, first->devnode, first); in swap_set_devnode()
130 return hashmap_replace(swaps, first->devnode, first); in swap_set_devnode()
Ddevice.c82 r = hashmap_replace(UNIT(d)->manager->devices_by_sysfs, copy, first); in device_set_sysfs()
Dunit.c885 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()
Dmanager.c4326 return hashmap_replace(*uid_refs, UID_TO_PTR(uid), UINT32_TO_PTR(c)); in manager_ref_uid_internal()
/systemd-251/src/shared/
Dvarlink.c1183 … (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/
Dnetworkd-link.c2169 r = hashmap_replace(link->manager->links_by_hw_addr, &link->hw_addr, link); in link_update_hardware_address()