Lines Matching refs:driver
78 free(device->driver);
285 char *driver;
288 driver = strchr(subsys, ':');
289 if (driver) {
290 driver[0] = '\0';
291 driver++;
293 syspath = strjoina("/sys/subsystem/", subsys, "/drivers/", driver);
297 syspath = strjoina("/sys/bus/", subsys, "/drivers/", driver);
876 _cleanup_free_ char *driver = NULL;
882 driver = strdup(_driver);
883 if (!driver)
886 r = device_add_property_internal(device, "DRIVER", driver);
890 free(device->driver);
891 device->driver = driver;
892 driver = NULL;
904 _cleanup_free_ char *driver = NULL;
913 path = strjoina(syspath, "/driver");
914 r = readlink_value(path, &driver);
916 r = device_set_driver(device, driver);
918 return log_debug_errno(r, "sd-device: could not set driver for %s: %m", device->devpath);
922 return log_debug_errno(r, "sd-device: could not set driver for %s: %m", device->devpath);
925 if (!device->driver)
928 *ret = device->driver;
1744 if (STR_IN_SET(sysattr, "driver", "subsystem", "module")) {