Searched refs:subsystem (Results 1 - 15 of 15) sorted by relevance

/systemd/src/backlight/
H A Dbacklight.c35 const char *subsystem, *sysname; local
43 subsystem = udev_device_get_subsystem(parent);
44 if (!subsystem)
51 if (streq(subsystem, "drm")) {
67 } else if (streq(subsystem, "pci")) {
76 value, subsystem, sysname);
85 } else if (streq(subsystem, "platform"))
108 const char *v, *subsystem; local
128 subsystem = udev_device_get_subsystem(device);
129 if (!streq_ptr(subsystem, "backligh
238 const char *subsystem; local
[all...]
/systemd/src/udev/
H A Dudev-builtin-hwdb.c84 const char *subsystem, const char *prefix,
104 /* look only at devices of a specific subsystem */
105 if (subsystem && !streq(dsubsys, subsystem))
134 { "subsystem", required_argument, NULL, 's' },
140 const char *subsystem = NULL; local
164 subsystem = optarg;
187 if (udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filter, test) > 0)
83 udev_builtin_hwdb_search(struct udev_device *dev, struct udev_device *srcdev, const char *subsystem, const char *prefix, const char *filter, bool test) argument
H A Dudev-builtin-path_id.c86 const char *subsystem; local
88 subsystem = udev_device_get_subsystem(parent);
89 if (subsystem == NULL || !streq(subsystem, subsys))
499 /* scsi sysfs does not have a "subsystem" for the transport */
/systemd/src/systemd/
H A Dsd-device.h41 int sd_device_new_from_subsystem_sysname(sd_device **ret, const char *subsystem, const char *sysname);
45 int sd_device_get_parent_with_subsystem_devtype(sd_device *child, const char *subsystem, const char *devtype, sd_device **ret);
87 int sd_device_enumerator_add_match_subsystem(sd_device_enumerator *enumerator, const char *subsystem, int match);
/systemd/src/libudev/
H A Dlibudev-enumerate.c191 * @subsystem: filter for a subsystem of the device to include in the list
193 * Match only devices belonging to a certain kernel subsystem.
197 _public_ int udev_enumerate_add_match_subsystem(struct udev_enumerate *udev_enumerate, const char *subsystem) { argument
200 if (!subsystem)
203 return sd_device_enumerator_add_match_subsystem(udev_enumerate->enumerator, subsystem, true);
209 * @subsystem: filter for a subsystem of the device to exclude from the list
211 * Match only devices not belonging to a certain kernel subsystem.
215 _public_ int udev_enumerate_add_nomatch_subsystem(struct udev_enumerate *udev_enumerate, const char *subsystem) { argument
[all...]
H A Dlibudev.h82 struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *udev, const char *subsystem, const char *sysname);
88 const char *subsystem, const char *devtype);
130 const char *subsystem, const char *devtype);
146 int udev_enumerate_add_match_subsystem(struct udev_enumerate *udev_enumerate, const char *subsystem);
147 int udev_enumerate_add_nomatch_subsystem(struct udev_enumerate *udev_enumerate, const char *subsystem);
H A Dlibudev-device.c53 * filesystem. Devices usually belong to a kernel subsystem, and have
54 * a unique name inside that subsystem.
167 * Retrieve the subsystem string of the udev device. The string does not
170 * Returns: the subsystem name of the udev device, or #NULL if it can not be determined
174 const char *subsystem; local
179 r = sd_device_get_subsystem(udev_device->device, &subsystem);
183 } else if (!subsystem)
186 return subsystem;
312 * +sound:card29 - kernel driver core subsystem:device name
341 * @subsystem
353 udev_device_new_from_subsystem_sysname(struct udev *udev, const char *subsystem, const char *sysname) argument
481 udev_device_get_parent_with_subsystem_devtype(struct udev_device *udev_device, const char *subsystem, const char *devtype) argument
[all...]
H A Dlibudev-monitor.c344 /* add all subsystem matches */
349 /* load device subsystem value in A */
352 /* jump if subsystem does not match */
355 /* jump if subsystem does not match */
787 * @subsystem: the subsystem value to match the incoming devices against
797 _public_ int udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *udev_monitor, const char *subsystem, const char *devtype) argument
801 if (subsystem == NULL)
803 if (udev_list_entry_add(&udev_monitor->filter_subsystem_list, subsystem, devtype) == NULL)
/systemd/src/libsystemd/sd-device/
H A Dsd-device.c77 free(device->subsystem);
260 _public_ int sd_device_new_from_subsystem_sysname(sd_device **ret, const char *subsystem, const char *sysname) { argument
264 assert_return(subsystem, -EINVAL);
267 if (streq(subsystem, "subsystem")) {
268 syspath = strjoina("/sys/subsystem/", sysname);
279 } else if (streq(subsystem, "module")) {
283 } else if (streq(subsystem, "drivers")) {
293 syspath = strjoina("/sys/subsystem/", subsys, "/drivers/", driver);
315 syspath = strjoina("/sys/subsystem/", subsyste
748 _cleanup_free_ char *subsystem = NULL; local
776 _cleanup_free_ char *subsystem = NULL; local
828 sd_device_get_parent_with_subsystem_devtype(sd_device *child, const char *subsystem, const char *devtype, sd_device **ret) argument
1196 const char *subsystem; local
[all...]
H A Ddevice-enumerator.c111 _public_ int sd_device_enumerator_add_match_subsystem(sd_device_enumerator *enumerator, const char *subsystem, int match) { argument
116 assert_return(subsystem, -EINVAL);
127 r = set_put_strdup(*set, subsystem);
565 static bool match_subsystem(sd_device_enumerator *enumerator, const char *subsystem) { argument
571 if (!subsystem)
575 if (fnmatch(subsystem_match, subsystem, 0) == 0)
582 if (fnmatch(subsystem_match, subsystem, 0) == 0)
588 static int enumerator_scan_dir(sd_device_enumerator *enumerator, const char *basedir, const char *subdir, const char *subsystem) { argument
608 if (!match_subsystem(enumerator, subsystem ? : dent->d_name))
644 const char *subsystem, *sysnam local
714 const char *subsystem, *sysname; local
[all...]
H A Ddevice-internal.h77 char *subsystem; member in struct:sd_device
78 bool subsystem_set; /* don't reread subsystem */
H A Ddevice-private.c392 return log_debug_errno(r, "sd-device: could not set subsystem to '%s': %m", value);
545 if (!device->devpath || !device->subsystem || action == _DEVICE_ACTION_INVALID || seqnum == 0) {
546 log_debug("sd-device: device created from strv lacks devpath, subsystem, action or seqnum");
810 r = device_set_subsystem(ret, old_device->subsystem);
/systemd/src/login/
H A Dsysfs-show.c50 const char *sn, *name, *sysfs, *subsystem, *sysname; local
79 subsystem = udev_device_get_subsystem(d);
118 subsystem, sysname,
H A Dlogind-session-device.c253 const char *sysname, *subsystem; local
257 subsystem = udev_device_get_subsystem(dev);
260 if (streq_ptr(subsystem, "drm")) {
263 } else if (streq_ptr(subsystem, "input")) {
303 * subsystem "input" must be opened via the evdev node as
/systemd/src/test/
H A Dtest-libudev.c60 printf("subsystem: '%s'\n", str);
170 printf("looking up device: 'subsystem':'pci'\n");
171 device = udev_device_new_from_subsystem_sysname(udev, "subsystem", "pci");
307 static int test_enumerate(struct udev *udev, const char *subsystem) { argument
311 printf("enumerate '%s'\n", subsystem == NULL ? "<all>" : subsystem);
315 udev_enumerate_add_match_subsystem(udev_enumerate, subsystem);
374 printf("enumerate 'subsystem'\n");
411 { "subsystem", required_argument, NULL, 's' },
418 const char *subsystem local
[all...]

Completed in 1376 milliseconds