Lines Matching defs:syspath
50 printf("syspath: '%s'\n", str);
111 static int test_device(struct udev *udev, const char *syspath) {
114 printf("looking at device: %s\n", syspath);
115 device = udev_device_new_from_syspath(udev, syspath);
125 static int test_device_parents(struct udev *udev, const char *syspath) {
129 printf("looking at device: %s\n", syspath);
130 device = udev_device_new_from_syspath(udev, syspath);
409 { "syspath", required_argument, NULL, 'p' },
416 const char *syspath = "/devices/virtual/mem/null";
432 syspath = optarg;
445 printf("--debug --syspath= --subsystem= --help\n");
461 if (!startswith(syspath, "/sys")) {
462 snprintf(path, sizeof(path), "/sys/%s", syspath);
463 syspath = path;
466 test_device(udev, syspath);
469 test_device_parents(udev, syspath);