Home
last modified time | relevance | path

Searched refs:devtype (Results 1 – 16 of 16) sorted by relevance

/systemd-251/src/udev/
Dudevadm-monitor.c64 const char *subsystem, *devtype, *tag; in setup_monitor() local
77 HASHMAP_FOREACH_KEY(devtype, subsystem, arg_subsystem_filter) { in setup_monitor()
78 … r = sd_device_monitor_filter_add_match_subsystem_devtype(monitor, subsystem, devtype); in setup_monitor()
81 subsystem, devtype ? "/" : "", strempty(devtype)); in setup_monitor()
144 _cleanup_free_ char *subsystem = NULL, *devtype = NULL; in parse_argv() local
149 devtype = strdup(slash + 1); in parse_argv()
150 if (!devtype) in parse_argv()
160 r = hashmap_ensure_put(&arg_subsystem_filter, NULL, subsystem, devtype); in parse_argv()
165 TAKE_PTR(devtype); in parse_argv()
Dudev-builtin-hwdb.c80 const char *dsubsys, *devtype, *modalias = NULL; in udev_builtin_hwdb_search() local
92 sd_device_get_devtype(d, &devtype) >= 0 && in udev_builtin_hwdb_search()
93 streq(devtype, "usb_device")) { in udev_builtin_hwdb_search()
Dudev-builtin-path_id.c418 const char *devtype, *id, *name; in handle_scsi() local
420 if (sd_device_get_devtype(parent, &devtype) < 0 || in handle_scsi()
421 !streq(devtype, "scsi_device")) in handle_scsi()
491 const char *devtype, *str, *port; in handle_usb() local
493 if (sd_device_get_devtype(parent, &devtype) < 0) in handle_usb()
495 if (!STR_IN_SET(devtype, "usb_interface", "usb_device")) in handle_usb()
Dudev-builtin-usb_id.c250 const char *syspath, *sysname, *devtype, *interface_syspath; in builtin_usb_id() local
264 if (sd_device_get_devtype(dev, &devtype) >= 0 && streq(devtype, "usb_device")) { in builtin_usb_id()
Dudev-builtin-net_id.c967 const char *devtype, *prefix = "en"; in builtin_net_id() local
1016 if (sd_device_get_devtype(dev, &devtype) >= 0) { in builtin_net_id()
1017 if (streq("wlan", devtype)) in builtin_net_id()
1019 else if (streq("wwan", devtype)) in builtin_net_id()
Dudevd.c1401 const char *subsystem, *sysname, *devtype; in synthesize_change() local
1408 r = sd_device_get_devtype(dev, &devtype); in synthesize_change()
1417 streq_ptr(devtype, "disk") && in synthesize_change()
/systemd-251/src/libsystemd/sd-device/
Ddevice-monitor.c355 const char *s, *subsystem, *d, *devtype = NULL; in check_subsystem_filter() local
368 r = sd_device_get_devtype(device, &devtype); in check_subsystem_filter()
376 if (!d || streq_ptr(d, devtype)) in check_subsystem_filter()
651 const char *subsystem, *devtype, *tag; in sd_device_monitor_filter_update() local
704 HASHMAP_FOREACH_KEY(devtype, subsystem, m->subsystem_filter) { in sd_device_monitor_filter_update()
709 if (!devtype) { in sd_device_monitor_filter_update()
718 hash = string_hash32(devtype); in sd_device_monitor_filter_update()
748 …ter_add_match_subsystem_devtype(sd_device_monitor *m, const char *subsystem, const char *devtype) { in sd_device_monitor_filter_add_match_subsystem_devtype() argument
756 …r = hashmap_put_strdup_full(&m->subsystem_filter, &trivial_hash_ops_free_free, subsystem, devtype); in sd_device_monitor_filter_add_match_subsystem_devtype()
Ddevice-internal.h53 char *devtype; member
109 int device_set_devtype(sd_device *device, const char *devtype);
Dsd-device.c66 free(device->devtype); in device_free()
522 int device_set_devtype(sd_device *device, const char *devtype) { in device_set_devtype() argument
527 assert(devtype); in device_set_devtype()
529 t = strdup(devtype); in device_set_devtype()
537 return free_and_replace(device->devtype, t); in device_set_devtype()
1019 _public_ int sd_device_get_devtype(sd_device *device, const char **devtype) { in sd_device_get_devtype() argument
1028 if (!device->devtype) in sd_device_get_devtype()
1031 if (devtype) in sd_device_get_devtype()
1032 *devtype = device->devtype; in sd_device_get_devtype()
1034 return !!device->devtype; in sd_device_get_devtype()
[all …]
Dtest-sd-device-monitor.c56 const char *syspath, *subsystem, *tag, *devtype = NULL; in test_send_receive_one() local
74 (void) sd_device_get_devtype(device, &devtype); in test_send_receive_one()
75 …_se(sd_device_monitor_filter_add_match_subsystem_devtype(monitor_client, subsystem, devtype) >= 0); in test_send_receive_one()
/systemd-251/src/libudev/
Dlibudev-device.c144 const char *devtype; in udev_device_get_devtype() local
149 r = sd_device_get_devtype(udev_device->device, &devtype); in udev_device_get_devtype()
155 return devtype; in udev_device_get_devtype()
438 …th_subsystem_devtype(struct udev_device *udev_device, const char *subsystem, const char *devtype) { in udev_device_get_parent_with_subsystem_devtype() argument
448 … r = sd_device_get_parent_with_subsystem_devtype(udev_device->device, subsystem, devtype, &parent); in udev_device_get_parent_with_subsystem_devtype()
Dlibudev-monitor.c267 …_subsystem_devtype(struct udev_monitor *udev_monitor, const char *subsystem, const char *devtype) { in udev_monitor_filter_add_match_subsystem_devtype() argument
272 … = sd_device_monitor_filter_add_match_subsystem_devtype(udev_monitor->monitor, subsystem, devtype); in udev_monitor_filter_add_match_subsystem_devtype()
Dlibudev.h72 … const char *subsystem, const char *devtype);
116 const char *subsystem, const char *devtype);
/systemd-251/src/systemd/
Dsd-device.h71 …h_subsystem_devtype(sd_device *child, const char *subsystem, const char *devtype, sd_device **ret);
148 …lter_add_match_subsystem_devtype(sd_device_monitor *m, const char *subsystem, const char *devtype);
/systemd-251/src/gpt-auto-generator/
Dgpt-auto-generator.c47 const char *name, *devtype, *node; in open_parent_block_device() local
74 r = sd_device_get_devtype(parent, &devtype); in open_parent_block_device()
81 if (!streq(devtype, "disk")) { in open_parent_block_device()
/systemd-251/shell-completion/zsh/
D_udevadm74 '--subsystem-match=[Filter events by subsystem/\[devtype\].]' \