Lines Matching refs:sysname

64         char *sysname;
427 udev_device->sysname = strdup(&pos[1]);
428 if (udev_device->sysname == NULL)
433 while (udev_device->sysname[len] != '\0') {
434 if (udev_device->sysname[len] == '!')
435 udev_device->sysname[len] = '/';
440 while (len > 0 && isdigit(udev_device->sysname[--len]))
441 udev_device->sysnum = &udev_device->sysname[len];
443 /* sysname is completely numeric */
883 char *sysname;
927 sysname = strchr(subsys, ':');
928 if (sysname == NULL) {
932 sysname[0] = '\0';
933 sysname = &sysname[1];
934 return udev_device_new_from_subsystem_sysname(udev, subsys, sysname);
945 * @sysname: the name of the device
956 _public_ struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *udev, const char *subsystem, const char *sysname)
962 strscpyl(path, sizeof(path), "/sys/subsystem/", sysname, NULL);
966 strscpyl(path, sizeof(path), "/sys/bus/", sysname, NULL);
970 strscpyl(path, sizeof(path), "/sys/class/", sysname, NULL);
977 strscpyl(path, sizeof(path), "/sys/module/", sysname, NULL);
987 strscpy(subsys, sizeof(subsys), sysname);
1006 strscpyl(path, sizeof(path), "/sys/subsystem/", subsystem, "/devices/", sysname, NULL);
1010 strscpyl(path, sizeof(path), "/sys/bus/", subsystem, "/devices/", sysname, NULL);
1014 strscpyl(path, sizeof(path), "/sys/class/", subsystem, "/", sysname, NULL);
1216 free(udev_device->sysname);
1279 return udev_device->sysname;
1728 * sysname() has '!' translated, get it from devpath
1730 const char *sysname;
1731 sysname = strrchr(udev_device->devpath, '/');
1732 if (sysname == NULL)
1734 sysname = &sysname[1];
1735 if (asprintf(&udev_device->id_filename, "+%s:%s", udev_device_get_subsystem(udev_device), sysname) < 0)