Searched refs:enumerator (Results 1 – 7 of 7) sorted by relevance
/systemd-251/src/libsystemd/sd-device/ |
D | device-enumerator.c | 52 _cleanup_(sd_device_enumerator_unrefp) sd_device_enumerator *enumerator = NULL; in sd_device_enumerator_new() 56 enumerator = new(sd_device_enumerator, 1); in sd_device_enumerator_new() 57 if (!enumerator) in sd_device_enumerator_new() 60 *enumerator = (sd_device_enumerator) { in sd_device_enumerator_new() 66 *ret = TAKE_PTR(enumerator); in sd_device_enumerator_new() 78 static void device_enumerator_unref_devices(sd_device_enumerator *enumerator) { in device_enumerator_unref_devices() argument 79 assert(enumerator); in device_enumerator_unref_devices() 81 hashmap_clear_with_destructor(enumerator->devices_by_syspath, sd_device_unref); in device_enumerator_unref_devices() 82 device_unref_many(enumerator->devices, enumerator->n_devices); in device_enumerator_unref_devices() 83 enumerator->devices = mfree(enumerator->devices); in device_enumerator_unref_devices() [all …]
|
D | device-enumerator-private.h | 17 int device_enumerator_scan_devices(sd_device_enumerator *enumerator); 18 int device_enumerator_scan_subsystems(sd_device_enumerator *enumerator); 19 int device_enumerator_scan_devices_and_subsystems(sd_device_enumerator *enumerator); 20 int device_enumerator_add_device(sd_device_enumerator *enumerator, sd_device *device); 21 int device_enumerator_add_parent_devices(sd_device_enumerator *enumerator, sd_device *device); 22 int device_enumerator_add_match_is_initialized(sd_device_enumerator *enumerator, MatchInitializedTy… 23 int device_enumerator_add_match_parent_incremental(sd_device_enumerator *enumerator, sd_device *par… 24 int device_enumerator_add_prioritized_subsystem(sd_device_enumerator *enumerator, const char *subsy… 25 sd_device *device_enumerator_get_first(sd_device_enumerator *enumerator); 26 sd_device *device_enumerator_get_next(sd_device_enumerator *enumerator); [all …]
|
D | device-util.h | 38 #define FOREACH_DEVICE(enumerator, device) \ argument 39 for (device = sd_device_enumerator_get_device_first(enumerator); \ 41 device = sd_device_enumerator_get_device_next(enumerator)) 43 #define FOREACH_SUBSYSTEM(enumerator, device) \ argument 44 for (device = sd_device_enumerator_get_subsystem_first(enumerator); \ 46 device = sd_device_enumerator_get_subsystem_next(enumerator))
|
/systemd-251/src/libudev/ |
D | libudev-enumerate.c | 41 sd_device_enumerator *enumerator; member 77 .enumerator = TAKE_PTR(e), in udev_enumerate_new() 88 sd_device_enumerator_unref(udev_enumerate->enumerator); in udev_enumerate_free() 144 FOREACH_DEVICE_AND_SUBSYSTEM(udev_enumerate->enumerator, device) { in udev_enumerate_get_list_entry() 183 r = sd_device_enumerator_add_match_subsystem(udev_enumerate->enumerator, subsystem, true); in udev_enumerate_add_match_subsystem() 208 r = sd_device_enumerator_add_match_subsystem(udev_enumerate->enumerator, subsystem, false); in udev_enumerate_add_nomatch_subsystem() 234 … r = sd_device_enumerator_add_match_sysattr(udev_enumerate->enumerator, sysattr, value, true); in udev_enumerate_add_match_sysattr() 260 … r = sd_device_enumerator_add_match_sysattr(udev_enumerate->enumerator, sysattr, value, false); in udev_enumerate_add_nomatch_sysattr() 286 r = sd_device_enumerator_add_match_property(udev_enumerate->enumerator, property, value); in udev_enumerate_add_match_property() 311 r = sd_device_enumerator_add_match_tag(udev_enumerate->enumerator, tag); in udev_enumerate_add_match_tag() [all …]
|
/systemd-251/src/systemd/ |
D | sd-device.h | 117 sd_device_enumerator *sd_device_enumerator_ref(sd_device_enumerator *enumerator); 118 sd_device_enumerator *sd_device_enumerator_unref(sd_device_enumerator *enumerator); 120 sd_device *sd_device_enumerator_get_device_first(sd_device_enumerator *enumerator); 121 sd_device *sd_device_enumerator_get_device_next(sd_device_enumerator *enumerator); 122 sd_device *sd_device_enumerator_get_subsystem_first(sd_device_enumerator *enumerator); 123 sd_device *sd_device_enumerator_get_subsystem_next(sd_device_enumerator *enumerator); 125 int sd_device_enumerator_add_match_subsystem(sd_device_enumerator *enumerator, const char *subsyste… 126 int sd_device_enumerator_add_match_sysattr(sd_device_enumerator *enumerator, const char *sysattr, c… 127 int sd_device_enumerator_add_match_property(sd_device_enumerator *enumerator, const char *property,… 128 int sd_device_enumerator_add_match_sysname(sd_device_enumerator *enumerator, const char *sysname); [all …]
|
/systemd-251/coccinelle/ |
D | macros.h | 228 #define FOREACH_DEVICE(enumerator, device) YACFE_ITERATOR argument 229 #define FOREACH_SUBSYSTEM(enumerator, device) YACFE_ITERATOR argument
|
/systemd-251/src/libsystemd/ |
D | meson.build | 124 'sd-device/device-enumerator-private.h', 125 'sd-device/device-enumerator.c',
|