Searched refs:new_key (Results 1 – 6 of 6) sorted by relevance
/systemd-251/src/basic/ |
D | hashmap.h | 217 int hashmap_remove_and_put(Hashmap *h, const void *old_key, const void *new_key, void *value); 218 …_hashmap_remove_and_put(OrderedHashmap *h, const void *old_key, const void *new_key, void *value) { in ordered_hashmap_remove_and_put() argument 219 return hashmap_remove_and_put(PLAIN_HASHMAP(h), old_key, new_key, value); in ordered_hashmap_remove_and_put() 222 int hashmap_remove_and_replace(Hashmap *h, const void *old_key, const void *new_key, void *value); 223 …hmap_remove_and_replace(OrderedHashmap *h, const void *old_key, const void *new_key, void *value) { in ordered_hashmap_remove_and_replace() argument 224 return hashmap_remove_and_replace(PLAIN_HASHMAP(h), old_key, new_key, value); in ordered_hashmap_remove_and_replace()
|
D | hashmap.c | 1438 int hashmap_remove_and_put(Hashmap *h, const void *old_key, const void *new_key, void *value) { in hashmap_remove_and_put() argument 1451 new_hash = bucket_hash(h, new_key); in hashmap_remove_and_put() 1452 if (bucket_scan(h, new_hash, new_key) != IDX_NIL) in hashmap_remove_and_put() 1458 e->b.key = new_key; in hashmap_remove_and_put() 1465 int set_remove_and_put(Set *s, const void *old_key, const void *new_key) { in set_remove_and_put() argument 1478 new_hash = bucket_hash(s, new_key); in set_remove_and_put() 1479 if (bucket_scan(s, new_hash, new_key) != IDX_NIL) in set_remove_and_put() 1485 e->key = new_key; in set_remove_and_put() 1491 int hashmap_remove_and_replace(Hashmap *h, const void *old_key, const void *new_key, void *value) { in hashmap_remove_and_replace() argument 1506 new_hash = bucket_hash(h, new_key); in hashmap_remove_and_replace() [all …]
|
D | set.h | 52 int set_remove_and_put(Set *s, const void *old_key, const void *new_key);
|
/systemd-251/src/libsystemd/sd-device/ |
D | sd-device.c | 101 _cleanup_free_ char *new_key = NULL, *new_value = NULL, *old_key = NULL; in device_add_property_aux() local 108 new_key = strdup(key); in device_add_property_aux() 109 if (!new_key) in device_add_property_aux() 119 r = ordered_hashmap_replace(*properties, new_key, new_value); in device_add_property_aux() 123 TAKE_PTR(new_key); in device_add_property_aux() 2052 _cleanup_free_ char *new_key = NULL; in device_cache_sysattr_value() local 2062 old_value = hashmap_remove2(device->sysattr_values, key, (void **) &new_key); in device_cache_sysattr_value() 2063 if (!new_key) { in device_cache_sysattr_value() 2064 new_key = strdup(key); in device_cache_sysattr_value() 2065 if (!new_key) in device_cache_sysattr_value() [all …]
|
/systemd-251/src/resolve/ |
D | resolved-dns-query.c | 270 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *new_key = NULL; in dns_query_candidate_setup_transactions() 274 … r = dns_resource_key_new_append_suffix(&new_key, key, c->search_domain->name); in dns_query_candidate_setup_transactions() 278 qkey = new_key; in dns_query_candidate_setup_transactions()
|
D | resolved-dns-rr.c | 69 DnsResourceKey *new_key; in dns_resource_key_new_append_suffix() local 86 new_key = dns_resource_key_new_consume(key->class, key->type, joined); in dns_resource_key_new_append_suffix() 87 if (!new_key) { in dns_resource_key_new_append_suffix() 92 *ret = new_key; in dns_resource_key_new_append_suffix()
|