Home
last modified time | relevance | path

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

/systemd-251/src/libudev/
Dlibudev-device.c61 struct udev_list *devlinks; member
203 …ist *properties = NULL, *all_tags = NULL, *current_tags = NULL, *sysattrs = NULL, *devlinks = NULL; in udev_device_new() local
220 devlinks = udev_list_new(true); in udev_device_new()
221 if (!devlinks) in udev_device_new()
236 .devlinks = TAKE_PTR(devlinks), in udev_device_new()
485 udev_list_free(udev_device->devlinks); in udev_device_free()
640 udev_list_cleanup(udev_device->devlinks); in udev_device_get_devlinks_list_entry()
643 if (!udev_list_entry_add(udev_device->devlinks, devlink, NULL)) in udev_device_get_devlinks_list_entry()
650 return udev_list_get_entry(udev_device->devlinks); in udev_device_get_devlinks_list_entry()
/systemd-251/src/libsystemd/sd-device/
Dtest-sd-device.c311 const char *devlinks = in TEST() local
329 NULSTR_FOREACH(devlink, devlinks) { in TEST()
332 assert_se(set_contains(device->devlinks, devlink)); in TEST()
343 NULSTR_FOREACH(devlink, devlinks) { in TEST()
345 assert_se(set_contains(from_nulstr->devlinks, devlink)); in TEST()
Dsd-device.c81 set_free(device->devlinks); in device_free()
1318 r = set_put_strdup(&device->devlinks, devlink); in device_add_devlink()
1332 return set_contains(device->devlinks, devlink); in device_has_devlink()
1729 (void) set_iterate(device->devlinks, &device->devlinks_iterator, &v); in sd_device_get_devlink_first()
1743 (void) set_iterate(device->devlinks, &device->devlinks_iterator, &v); in sd_device_get_devlink_next()
1761 _cleanup_free_ char *devlinks = NULL; in device_properties_prepare() local
1763 r = set_strjoin(device->devlinks, " ", false, &devlinks); in device_properties_prepare()
1767 if (!isempty(devlinks)) { in device_properties_prepare()
1768 r = device_add_property_internal(device, "DEVLINKS", devlinks); in device_properties_prepare()
Ddevice-internal.h46 Set *devlinks; member
Ddevice-private.c905 set_free_free(device->devlinks); in device_cleanup_devlinks()
906 device->devlinks = NULL; in device_cleanup_devlinks()
968 if (!set_isempty(device->devlinks)) in device_has_info()