Home
last modified time | relevance | path

Searched refs:old_key (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/basic/
Dhashmap.h217 int hashmap_remove_and_put(Hashmap *h, const void *old_key, const void *new_key, void *value);
218 static inline int ordered_hashmap_remove_and_put(OrderedHashmap *h, const void *old_key, const void… 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 static inline int ordered_hashmap_remove_and_replace(OrderedHashmap *h, const void *old_key, const … 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()
Dhashmap.c1438 int hashmap_remove_and_put(Hashmap *h, const void *old_key, const void *new_key, void *value) { in hashmap_remove_and_put() argument
1446 old_hash = bucket_hash(h, old_key); in hashmap_remove_and_put()
1447 idx = bucket_scan(h, old_hash, old_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
1473 old_hash = bucket_hash(s, old_key); in set_remove_and_put()
1474 idx = bucket_scan(s, old_hash, old_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
1499 old_hash = bucket_hash(h, old_key); in hashmap_remove_and_replace()
1500 idx_old = bucket_scan(h, old_hash, old_key); in hashmap_remove_and_replace()
1504 old_key = bucket_at(HASHMAP_BASE(h), idx_old)->key; in hashmap_remove_and_replace()
[all …]
Dset.h52 int set_remove_and_put(Set *s, const void *old_key, const void *new_key);
/systemd-251/src/libsystemd/sd-device/
Dsd-device.c101 _cleanup_free_ char *new_key = NULL, *new_value = NULL, *old_key = NULL; in device_add_property_aux() local
116 old_value = ordered_hashmap_get2(*properties, key, (void**) &old_key); in device_add_property_aux()
127 _cleanup_free_ char *old_key = NULL; in device_add_property_aux() local
129 old_value = ordered_hashmap_remove2(*properties, key, (void**) &old_key); in device_add_property_aux()
/systemd-251/src/udev/
Dudevd.c1305 _cleanup_free_ char *key = NULL, *val = NULL, *old_key = NULL; in on_ctrl_msg() local
1320 old_val = hashmap_remove2(manager->properties, key, (void **) &old_key); in on_ctrl_msg()