/systemd/src/libudev/ |
H A D | libudev-util.c | 48 char *sysname; local 59 sysname = strchr(subsys, '/'); 60 if (sysname == NULL) 62 sysname[0] = '\0'; 63 sysname = &sysname[1]; 65 attr = strchr(sysname, ']'); 78 dev = udev_device_new_from_subsystem_sysname(udev, subsys, sysname); 90 log_debug("value '[%s/%s]%s' is '%s'", subsys, sysname, attr, result); 99 log_debug("path '[%s/%s]%s' is '%s'", subsys, sysname, att [all...] |
H A D | libudev-enumerate.c | 348 * @sysname: filter for the name of the device to include in the list 354 _public_ int udev_enumerate_add_match_sysname(struct udev_enumerate *udev_enumerate, const char *sysname) { argument 357 if (!sysname) 360 return sd_device_enumerator_add_match_sysname(udev_enumerate->enumerator, sysname);
|
H A D | libudev-device.c | 342 * @sysname: the name of the device 353 _public_ struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *udev, const char *subsystem, const char *sysname) argument 362 r = sd_device_new_from_subsystem_sysname(&udev_device->device, subsystem, sysname); 626 const char *sysname; local 631 r = sd_device_get_sysname(udev_device->device, &sysname); 637 return sysname;
|
H A D | libudev.h | 82 struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *udev, const char *subsystem, const char *sysname); 151 int udev_enumerate_add_match_sysname(struct udev_enumerate *udev_enumerate, const char *sysname);
|
/systemd/src/backlight/ |
H A D | backlight.c | 35 const char *subsystem, *sysname; local 47 sysname = udev_device_get_sysname(parent); 48 if (!sysname) 54 c = startswith(sysname, "card"); 76 value, subsystem, sysname); 275 const char *sysname, *path_id; local 302 sysname = strchr(argv[2], ':'); 303 if (!sysname) { 304 log_error("Requires a subsystem and sysname pair specifying a backlight device."); 308 ss = strndup(argv[2], sysname [all...] |
/systemd/src/libsystemd/sd-device/ |
H A D | sd-device.c | 74 free(device->sysname); 260 _public_ int sd_device_new_from_subsystem_sysname(sd_device **ret, const char *subsystem, const char *sysname) { argument 265 assert_return(sysname, -EINVAL); 268 syspath = strjoina("/sys/subsystem/", sysname); 272 syspath = strjoina("/sys/bus/", sysname); 276 syspath = strjoina("/sys/class/", sysname); 280 syspath = strjoina("/sys/module/", sysname); 287 strscpy(subsys, sizeof(subsys), sysname); 306 /* translate sysname back to sysfs filename */ 307 name = strdupa(sysname); 664 char *sysname; local 966 _cleanup_free_ char *sysname = NULL; local 1230 const char *sysname; local [all...] |
H A D | device-enumerator.c | 208 _public_ int sd_device_enumerator_add_match_sysname(sd_device_enumerator *enumerator, const char *sysname) { argument 212 assert_return(sysname, -EINVAL); 218 r = set_put_strdup(enumerator->match_sysname, sysname); 451 static bool match_sysname(sd_device_enumerator *enumerator, const char *sysname) { argument 456 assert(sysname); 462 if (fnmatch(sysname_match, sysname, 0) == 0) 644 const char *subsystem, *sysname; local 668 k = sd_device_get_sysname(device, &sysname); 674 if (!match_sysname(enumerator, sysname)) 714 const char *subsystem, *sysname; local [all...] |
H A D | device-internal.h | 69 char *sysname; member in struct:sd_device 70 bool sysname_set; /* don't reread sysname */
|
/systemd/src/rfkill/ |
H A D | rfkill.c | 60 _cleanup_free_ char *sysname = NULL; local 68 if (asprintf(&sysname, "rfkill%i", event->idx) < 0) 71 device = udev_device_new_from_subsystem_sysname(udev, "rfkill", sysname); 95 const char *sysname; local 107 assert_se(sysname = udev_device_get_sysname(device)); 129 d = udev_device_new_from_subsystem_sysname(udev, "rfkill", sysname); 151 if (streq_ptr(udev_device_get_sysname(device), sysname)) {
|
/systemd/src/login/ |
H A D | sysfs-show.c | 50 const char *sn, *name, *sysfs, *subsystem, *sysname; local 80 sysname = udev_device_get_sysname(d); 118 subsystem, sysname,
|
H A D | logind-session-device.c | 253 const char *sysname, *subsystem; local 256 sysname = udev_device_get_sysname(dev); 261 if (startswith(sysname, "card")) 264 if (startswith(sysname, "event"))
|
/systemd/src/systemd/ |
H A D | sd-device.h | 41 int sd_device_new_from_subsystem_sysname(sd_device **ret, const char *subsystem, const char *sysname); 90 int sd_device_enumerator_add_match_sysname(sd_device_enumerator *enumerator, const char *sysname);
|
/systemd/src/udev/ |
H A D | udev-builtin-input_id.c | 291 const char *sysname, *devnode; local 323 sysname = udev_device_get_sysname(dev); 324 if (devnode && sysname && startswith(sysname, "event"))
|
H A D | udev-builtin-path_id.c | 585 const char *sysname; local 588 sysname = udev_device_get_sysname(parent); 589 if (sscanf(sysname, "bcma%*u:%u", &core) != 1)
|
/systemd/src/basic/ |
H A D | hostname-util.c | 55 return strdup(u.sysname);
|
/systemd/src/journal/ |
H A D | journalctl.c | 179 const char *subsys, *sysname, *devnode; local 187 sysname = udev_device_get_sysname(d); 188 if (!sysname) { 193 match = strjoin("_KERNEL_DEVICE=+", subsys, ":", sysname, NULL);
|
/systemd/src/hostname/ |
H A D | hostnamed.c | 87 c->data[PROP_KERNEL_NAME] = strdup(u.sysname);
|
/systemd/src/bootchart/ |
H A D | svg.c | 202 uts.sysname, uts.release, uts.version, uts.machine);
|