Lines Matching refs:sysattr
137 _cleanup_free_ char *sysattr = NULL, *value = NULL;
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) {
352 assert(sysattr);
354 r = sd_device_get_sysattr_value(device, sysattr, &value);
368 const char *sysattr;
375 HASHMAP_FOREACH_KEY(value, sysattr, enumerator->nomatch_sysattr, i)
376 if (match_sysattr_value(device, sysattr, value))
379 HASHMAP_FOREACH_KEY(value, sysattr, enumerator->match_sysattr, i)
380 if (!match_sysattr_value(device, sysattr, value))