Searched defs:devpath (Results 1 - 8 of 8) sorted by relevance

/systemd/src/test/
H A Dtest-udev.c83 const char *devpath; local
104 devpath = argv[2];
105 if (devpath == NULL) {
106 log_error("devpath missing");
112 strscpyl(syspath, sizeof(syspath), "/sys", devpath, NULL);
115 log_debug("unknown device '%s'", devpath);
/systemd/src/libsystemd/sd-device/
H A Ddevice-internal.h67 const char *devpath; member in struct:sd_device
H A Ddevice-enumerator.c433 const char *devpath, *devpath_dev; local
442 r = sd_device_get_devpath(enumerator->match_parent, &devpath);
448 return startswith(devpath_dev, devpath);
H A Dsd-device.c152 const char *devpath; local
209 devpath = syspath + strlen("/sys");
211 r = device_add_property_internal(device, "DEVPATH", devpath);
219 device->devpath = devpath;
791 else if (path_startswith(device->devpath, "/module/"))
793 else if (strstr(device->devpath, "/drivers/"))
795 else if (path_startswith(device->devpath, "/subsystem/") ||
796 path_startswith(device->devpath, "/class/") ||
797 path_startswith(device->devpath, "/bu
933 sd_device_get_devpath(sd_device *device, const char **devpath) argument
[all...]
/systemd/src/libudev/
H A Dlibudev-device.c570 * Retrieve the kernel devpath value of the udev device. The path
573 * Returns: the devpath of the udev device
577 const char *devpath; local
582 r = sd_device_get_devpath(udev_device->device, &devpath);
588 return devpath;
/systemd/src/udev/
H A Dudev-builtin-input_id.c52 static void extract_info(struct udev_device *dev, const char *devpath, bool test) { argument
57 fd = open(devpath, O_RDONLY|O_CLOEXEC);
H A Dudevd.c120 const char *devpath; member in struct:event
255 log_error("seq %llu '%s' killed", udev_device_get_seqnum(event->dev), event->devpath);
265 log_warning("seq %llu '%s' is taking a long time", udev_device_get_seqnum(event->dev), event->devpath);
610 event->devpath = udev_device_get_devpath(dev);
611 event->devpath_len = strlen(event->devpath);
678 if (event->devpath_old != NULL && streq(loop_event->devpath, event->devpath_old)) {
683 /* compare devpath */
686 /* one devpath is contained in the other? */
687 if (memcmp(loop_event->devpath, event->devpath, commo
[all...]
/systemd/src/journal/
H A Djournalctl.c150 static int add_matches_for_device(sd_journal *j, const char *devpath) { argument
158 assert(devpath);
160 if (!path_startswith(devpath, "/dev/")) {
169 r = stat(devpath, &st);

Completed in 4422 milliseconds