Lines Matching defs:syspath

49  * by their syspath, every device has exactly one path in the kernel sys
62 char *syspath;
217 if (util_get_sys_core_link_value(udev_device->udev, "driver", udev_device->syspath, driver, sizeof(driver)) > 0)
293 if (util_get_sys_core_link_value(udev_device->udev, "subsystem", udev_device->syspath, subsystem, sizeof(subsystem)) > 0) {
412 static int udev_device_set_syspath(struct udev_device *udev_device, const char *syspath)
417 free(udev_device->syspath);
418 udev_device->syspath = strdup(syspath);
419 if (udev_device->syspath == NULL)
421 udev_device->devpath = udev_device->syspath + strlen("/sys");
424 pos = strrchr(udev_device->syspath, '/');
672 strscpyl(filename, sizeof(filename), udev_device->syspath, "/uevent", NULL);
748 * @syspath: sys device path including sys directory
751 * device and the udev database entry. The syspath is the absolute
759 _public_ struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath)
772 if (syspath == NULL) {
778 if (!startswith(syspath, "/sys")) {
779 log_debug("not in sys :%s", syspath);
785 subdir = syspath + strlen("/sys");
793 strscpy(path, sizeof(path), syspath);
1065 strscpy(path, sizeof(path), udev_device->syspath);
1215 free(udev_device->syspath);
1264 return udev_device->syspath;
1498 udev_device->syspath, value, sizeof(value)) < 0)
1960 dirname = dirname_malloc(udev_device->syspath);
2060 struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, const char *action) {
2069 ret = udev_device_new_from_syspath(udev, syspath);