Lines Matching refs:sysattr
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) {
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, value);
1793 _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr, char *_value) {
1804 assert_return(sysattr, -EINVAL);
1807 device_remove_sysattr_value(device, sysattr);
1816 path = strjoina(syspath, "/", sysattr);
1823 r = device_add_sysattr_value(device, sysattr, value);
1866 r = device_add_sysattr_value(device, sysattr, value);