Lines Matching defs:devpath
152 const char *devpath;
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, "/bus/"))
800 return log_debug_errno(r, "sd-device: could not set subsystem for %s: %m", device->devpath);
918 return log_debug_errno(r, "sd-device: could not set driver for %s: %m", device->devpath);
922 return log_debug_errno(r, "sd-device: could not set driver for %s: %m", device->devpath);
933 _public_ int sd_device_get_devpath(sd_device *device, const char **devpath) {
935 assert_return(devpath, -EINVAL);
937 assert(device->devpath);
938 assert(device->devpath[0] == '/');
940 *devpath = device->devpath;
971 pos = strrchr(device->devpath, '/');
976 /* devpath is not a root directory */
977 if (*pos == '\0' || pos <= device->devpath)
1228 * sysname() has '!' translated, get it from devpath
1232 sysname = basename(device->devpath);