Searched refs:sysattr (Results 1 - 7 of 7) sorted by relevance
/systemd/src/systemd/ |
H A D | sd-device.h | 72 int sd_device_get_sysattr_value(sd_device *device, const char *sysattr, const char **_value); 74 int sd_device_set_sysattr_value(sd_device *device, const char *sysattr, char *value); 88 int sd_device_enumerator_add_match_sysattr(sd_device_enumerator *enumerator, const char *sysattr, const char *value, int match);
|
/systemd/src/libudev/ |
H A D | libudev-enumerate.c | 227 * @sysattr: filter for a sys attribute at the device to include in the list 234 _public_ int udev_enumerate_add_match_sysattr(struct udev_enumerate *udev_enumerate, const char *sysattr, const char *value) { argument 237 if (!sysattr) 240 return sd_device_enumerator_add_match_sysattr(udev_enumerate->enumerator, sysattr, value, true); 246 * @sysattr: filter for a sys attribute at the device to exclude from the list 253 _public_ int udev_enumerate_add_nomatch_sysattr(struct udev_enumerate *udev_enumerate, const char *sysattr, const char *value) { argument 256 if (!sysattr) 259 return sd_device_enumerator_add_match_sysattr(udev_enumerate->enumerator, sysattr, value, false);
|
H A D | libudev.h | 108 const char *udev_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr); 109 int udev_device_set_sysattr_value(struct udev_device *udev_device, const char *sysattr, char *value); 148 int udev_enumerate_add_match_sysattr(struct udev_enumerate *udev_enumerate, const char *sysattr, const char *value); 149 int udev_enumerate_add_nomatch_sysattr(struct udev_enumerate *udev_enumerate, const char *sysattr, const char *value);
|
H A D | libudev-device.c | 810 * @sysattr: attribute name 817 _public_ const char *udev_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr) argument 824 r = sd_device_get_sysattr_value(udev_device->device, sysattr, &value); 836 * @sysattr: attribute name 843 _public_ int udev_device_set_sysattr_value(struct udev_device *udev_device, const char *sysattr, char *value) argument 849 r = sd_device_set_sysattr_value(udev_device->device, sysattr, value); 871 const char *sysattr; local 875 FOREACH_DEVICE_SYSATTR(udev_device->device, sysattr) 876 udev_list_entry_add(&udev_device->sysattrs, sysattr, NULL);
|
/systemd/src/libsystemd/sd-device/ |
H A D | device-enumerator.c | 137 _cleanup_free_ char *sysattr = NULL, *value = NULL; local 153 sysattr = strdup(_sysattr); 154 if (!sysattr) 163 r = hashmap_put(*hashmap, sysattr, value); 167 sysattr = NULL; 347 static bool match_sysattr_value(sd_device *device, const char *sysattr, const char *match_value) { argument 352 assert(sysattr); 354 r = sd_device_get_sysattr_value(device, sysattr, &value); 368 const char *sysattr; local 375 HASHMAP_FOREACH_KEY(value, sysattr, enumerato [all...] |
H A D | sd-device.c | 1700 /* We cache all sysattr lookups. If an attribute does not exist, it is stored 1702 _public_ int sd_device_get_sysattr_value(sd_device *device, const char *sysattr, const char **_value) { argument 1710 assert_return(sysattr, -EINVAL); 1713 r = device_get_sysattr_value(device, sysattr, &cached_value); 1719 /* we looked up the sysattr before and it did not exist */ 1732 path = strjoina(syspath, "/", sysattr); 1735 /* remember that we could not access the sysattr */ 1736 r = device_add_sysattr_value(device, sysattr, NULL); 1744 if (STR_IN_SET(sysattr, "driver", "subsystem", "module")) { 1769 r = device_add_sysattr_value(device, sysattr, valu 1793 sd_device_set_sysattr_value(sd_device *device, const char *sysattr, char *_value) argument [all...] |
/systemd/src/udev/ |
H A D | udevadm-info.c | 54 struct udev_list_entry *sysattr; local 56 udev_list_entry_foreach(sysattr, udev_device_get_sysattr_list_entry(device)) { 61 name = udev_list_entry_get_name(sysattr);
|
Completed in 654 milliseconds