Searched refs:sysname (Results 1 - 18 of 18) sorted by relevance

/systemd/src/libudev/
H A Dlibudev-util.c48 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 Dlibudev-enumerate.c348 * @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 Dlibudev-device.c342 * @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 Dlibudev.h82 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 Dbacklight.c35 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 Dsd-device.c74 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 Ddevice-enumerator.c208 _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 Ddevice-internal.h69 char *sysname; member in struct:sd_device
70 bool sysname_set; /* don't reread sysname */
/systemd/src/rfkill/
H A Drfkill.c60 _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 Dsysfs-show.c50 const char *sn, *name, *sysfs, *subsystem, *sysname; local
80 sysname = udev_device_get_sysname(d);
118 subsystem, sysname,
H A Dlogind-session-device.c253 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 Dsd-device.h41 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 Dudev-builtin-input_id.c291 const char *sysname, *devnode; local
323 sysname = udev_device_get_sysname(dev);
324 if (devnode && sysname && startswith(sysname, "event"))
H A Dudev-builtin-path_id.c585 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 Dhostname-util.c55 return strdup(u.sysname);
/systemd/src/journal/
H A Djournalctl.c179 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 Dhostnamed.c87 c->data[PROP_KERNEL_NAME] = strdup(u.sysname);
/systemd/src/bootchart/
H A Dsvg.c202 uts.sysname, uts.release, uts.version, uts.machine);

Completed in 2048 milliseconds