Lines Matching refs:syspath
111 static int test_device(struct udev *udev, const char *syspath) { in test_device() argument
114 printf("looking at device: %s\n", syspath); in test_device()
115 device = udev_device_new_from_syspath(udev, syspath); in test_device()
125 static int test_device_parents(struct udev *udev, const char *syspath) { in test_device_parents() argument
129 printf("looking at device: %s\n", syspath); in test_device_parents()
130 device = udev_device_new_from_syspath(udev, syspath); in test_device_parents()
416 const char *syspath = "/devices/virtual/mem/null"; in main() local
432 syspath = optarg; in main()
461 if (!startswith(syspath, "/sys")) { in main()
462 snprintf(path, sizeof(path), "/sys/%s", syspath); in main()
463 syspath = path; in main()
466 test_device(udev, syspath); in main()
469 test_device_parents(udev, syspath); in main()