Lines Matching defs:syspath
46 printf("syspath: '%s'\n", str);
107 static int test_device(struct udev *udev, const char *syspath) {
110 printf("looking at device: %s\n", syspath);
111 device = udev_device_new_from_syspath(udev, syspath);
121 static int test_device_parents(struct udev *udev, const char *syspath) {
125 printf("looking at device: %s\n", syspath);
126 device = udev_device_new_from_syspath(udev, syspath);
410 { "syspath", required_argument, NULL, 'p' },
417 const char *syspath = "/devices/virtual/mem/null";
433 syspath = optarg;
446 printf("--debug --syspath= --subsystem= --help\n");
462 if (!startswith(syspath, "/sys")) {
463 xsprintf(path, "/sys/%s", syspath);
464 syspath = path;
467 test_device(udev, syspath);
470 test_device_parents(udev, syspath);