Searched refs:devtype (Results 1 - 12 of 12) sorted by relevance

/systemd/src/udev/
H A Dudevadm-monitor.c118 char *devtype; local
121 devtype = strchr(subsys, '/');
122 if (devtype != NULL) {
123 devtype[0] = '\0';
124 devtype++;
126 udev_list_entry_add(&subsystem_match_list, subsys, devtype);
174 const char *devtype = udev_list_entry_get_value(entry); local
176 if (udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, subsys, devtype) < 0)
H A Dudev-builtin-path_id.c482 const char *devtype; local
486 devtype = udev_device_get_devtype(parent);
487 if (devtype == NULL || !streq(devtype, "scsi_device"))
563 const char *devtype; local
567 devtype = udev_device_get_devtype(parent);
568 if (devtype == NULL)
570 if (!streq(devtype, "usb_interface") && !streq(devtype, "usb_device"))
H A Dudev-builtin-net_id.c498 const char *devtype; local
529 devtype = udev_device_get_devtype(dev);
530 if (devtype) {
531 if (streq("wlan", devtype))
533 else if (streq("wwan", devtype))
/systemd/src/libsystemd/sd-device/
H A Ddevice-internal.h72 char *devtype; member in struct:sd_device
H A Dsd-device.c75 free(device->devtype);
332 _cleanup_free_ char *devtype = NULL; local
338 devtype = strdup(_devtype);
339 if (!devtype)
342 r = device_add_property_internal(device, "DEVTYPE", devtype);
346 free(device->devtype);
347 device->devtype = devtype;
348 devtype = NULL;
813 _public_ int sd_device_get_devtype(sd_device *device, const char **devtype) { argument
828 sd_device_get_parent_with_subsystem_devtype(sd_device *child, const char *subsystem, const char *devtype, sd_device **ret) argument
[all...]
/systemd/src/libudev/
H A Dlibudev-device.c143 * Retrieve the devtype string of the udev device.
145 * Returns: the devtype name of the udev device, or #NULL if it can not be determined
149 const char *devtype; local
154 r = sd_device_get_devtype(udev_device->device, &devtype);
160 return devtype;
464 * @devtype: the type (DEVTYPE) of the device
466 * Find the next parent device, with a matching subsystem and devtype
470 * If devtype is #NULL, only subsystem is checked, and any devtype will
481 _public_ struct udev_device *udev_device_get_parent_with_subsystem_devtype(struct udev_device *udev_device, const char *subsystem, const char *devtype) argument
[all...]
H A Dlibudev-monitor.c358 /* load device devtype value in A */
534 const char *devtype; local
540 devtype = udev_list_entry_get_value(list_entry);
541 if (devtype == NULL)
546 if (streq(ddevtype, devtype))
788 * @devtype: the devtype 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
803 if (udev_list_entry_add(&udev_monitor->filter_subsystem_list, subsystem, devtype) == NULL)
H A Dlibudev.h88 const char *subsystem, const char *devtype);
130 const char *subsystem, const char *devtype);
/systemd/src/systemd/
H A Dsd-device.h45 int sd_device_get_parent_with_subsystem_devtype(sd_device *child, const char *subsystem, const char *devtype, sd_device **ret);
/systemd/src/gpt-auto-generator/
H A Dgpt-auto-generator.c564 const char *name, *node, *pttype, *devtype; local
594 /* Does it have a devtype? */
595 devtype = udev_device_get_devtype(parent);
596 if (!devtype) {
602 if (!streq(devtype, "disk")) {
/systemd/src/network/
H A Dnetworkctl.c68 const char *devtype = NULL, *id = NULL; local
73 (void)sd_device_get_devtype(d, &devtype);
75 if (streq_ptr(devtype, "wlan"))
77 else if (streq_ptr(devtype, "wwan"))
H A Dnetworkd-network.c306 const char *path = NULL, *parent_driver = NULL, *driver = NULL, *devtype = NULL; local
320 devtype = udev_device_get_devtype(device);
330 devtype, ifname)) {

Completed in 34 milliseconds