/systemd-251/src/udev/ |
D | udevadm-monitor.c | 64 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()
|
D | udev-builtin-hwdb.c | 80 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()
|
D | udev-builtin-path_id.c | 418 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()
|
D | udev-builtin-usb_id.c | 250 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()
|
D | udev-builtin-net_id.c | 967 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()
|
D | udevd.c | 1401 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/ |
D | device-monitor.c | 355 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()
|
D | device-internal.h | 53 char *devtype; member 109 int device_set_devtype(sd_device *device, const char *devtype);
|
D | sd-device.c | 66 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 …]
|
D | test-sd-device-monitor.c | 56 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/ |
D | libudev-device.c | 144 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()
|
D | libudev-monitor.c | 267 …_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()
|
D | libudev.h | 72 … const char *subsystem, const char *devtype); 116 const char *subsystem, const char *devtype);
|
/systemd-251/src/systemd/ |
D | sd-device.h | 71 …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/ |
D | gpt-auto-generator.c | 47 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 | _udevadm | 74 '--subsystem-match=[Filter events by subsystem/\[devtype\].]' \
|