Searched defs:syspath (Results 1 - 11 of 11) sorted by relevance

/systemd/src/udev/
H A Dudevadm-test-builtin.c44 char *syspath = NULL; local
65 syspath = argv[optind++];
66 if (syspath == NULL) {
67 fprintf(stderr, "syspath missing\n");
83 if (!startswith(syspath, "/sys"))
84 strscpyl(filename, sizeof(filename), "/sys", syspath, NULL);
86 strscpy(filename, sizeof(filename), syspath);
H A Dudevadm-test.c34 printf("%s test OPTIONS <syspath>\n\n"
47 const char *syspath = NULL; local
91 syspath = argv[optind];
92 if (syspath == NULL) {
93 fprintf(stderr, "syspath parameter missing\n");
115 if (!startswith(syspath, "/sys"))
116 strscpyl(filename, sizeof(filename), "/sys", syspath, NULL);
118 strscpy(filename, sizeof(filename), syspath);
/systemd/src/test/
H A Dtest-udev.c82 char syspath[UTIL_PATH_SIZE]; local
112 strscpyl(syspath, sizeof(syspath), "/sys", devpath, NULL);
113 dev = udev_device_new_from_synthetic_event(udev, syspath, action);
H A Dtest-libudev.c46 printf("syspath: '%s'\n", str);
107 static int test_device(struct udev *udev, const char *syspath) { argument
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) { argument
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"; local
433 syspath
[all...]
/systemd/src/libudev/
H A Dlibudev-enumerate.c170 const char *syspath; local
173 r = sd_device_get_syspath(device, &syspath);
179 udev_list_entry_add(&udev_enumerate->devices_list, syspath, NULL);
366 * @syspath: path of a device
372 _public_ int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, const char *syspath) { argument
378 if (!syspath)
381 r = sd_device_new_from_syspath(&device, syspath);
H A Dlibudev-device-private.c278 struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, const char *action) { argument
286 r = device_new_from_synthetic_event(&device->device, syspath, action);
H A Dlibudev-device.c52 * by their syspath, every device has exactly one path in the kernel sys
237 * @syspath: sys device path including sys directory
240 * device and the udev database entry. The syspath is the absolute
248 _public_ struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath) { argument
256 r = sd_device_new_from_syspath(&udev_device->device, syspath);
602 const char *syspath; local
607 r = sd_device_get_syspath(udev_device->device, &syspath);
613 return syspath;
/systemd/src/libsystemd/sd-device/
H A Ddevice-internal.h66 char *syspath; member in struct:sd_device
H A Ddevice-enumerator.c491 char syspath[strlen(path) + 1 + strlen(dent->d_name) + 1]; local
501 (void)sprintf(syspath, "%s%s", path, dent->d_name);
503 k = sd_device_new_from_syspath(&device, syspath);
H A Ddevice-private.c388 return log_debug_errno(r, "sd-device: could not set syspath to '%s': %m", path);
768 dirname = dirname_malloc(device->syspath);
806 r = device_set_syspath(ret, old_device->syspath, false);
845 int device_new_from_synthetic_event(sd_device **new_device, const char *syspath, const char *action) { argument
850 assert(syspath);
853 r = sd_device_new_from_syspath(&ret, syspath);
H A Dsd-device.c73 free(device->syspath);
151 _cleanup_free_ char *syspath = NULL; local
160 log_debug("sd-device: syspath '%s' is not a subdirectory of /sys", _syspath);
165 r = readlink_and_canonicalize(_syspath, &syspath);
171 syspath = canonicalize_file_name(_syspath);
172 if (!syspath) {
184 if (path_startswith(syspath, "/sys/devices/")) {
188 path = strjoina(syspath, "/uevent");
195 log_debug("sd-device: %s does not have an uevent file: %m", syspath);
200 if (!is_dir(syspath, fals
224 sd_device_new_from_syspath(sd_device **ret, const char *syspath) argument
246 char *syspath; local
261 char *syspath; local
497 const char *syspath, *key = NULL, *value = NULL, *major = NULL, *minor = NULL; local
694 const char *subdir, *syspath; local
777 const char *syspath; local
905 const char *syspath; local
1546 const char *syspath; local
1704 const char *syspath, *cached_value = NULL; local
1796 const char *syspath; local
[all...]

Completed in 30 milliseconds