Home
last modified time | relevance | path

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

/systemd-251/src/libsystemd/sd-device/
Ddevice-enumerator.c32 Hashmap *devices_by_syspath; member
81 hashmap_clear_with_destructor(enumerator->devices_by_syspath, sd_device_unref); in device_enumerator_unref_devices()
92 hashmap_free(enumerator->devices_by_syspath); in device_enumerator_free()
350 devices = new(sd_device*, hashmap_size(enumerator->devices_by_syspath)); in enumerator_sort_devices()
360 HASHMAP_FOREACH_KEY(device, syspath, enumerator->devices_by_syspath) { in enumerator_sort_devices()
381 device = hashmap_get(enumerator->devices_by_syspath, q); in enumerator_sort_devices()
397 … assert_se(hashmap_remove(enumerator->devices_by_syspath, syspath) == devices[i]); in enumerator_sort_devices()
409 HASHMAP_FOREACH(device, enumerator->devices_by_syspath) in enumerator_sort_devices()
421 r = hashmap_put(enumerator->devices_by_syspath, syspath, devices[i]); in enumerator_sort_devices()
456 r = hashmap_ensure_put(&enumerator->devices_by_syspath, &string_hash_ops, syspath, device); in device_enumerator_add_device()