Home
last modified time | relevance | path

Searched refs:sd_device_get_sysattr_value (Results 1 – 25 of 27) sorted by relevance

12

/systemd-251/src/udev/
Dtest-udev-netlink.c25 assert_se(sd_device_get_sysattr_value(dev, "type", &s) >= 0); in test_link_info_one()
34 assert_se(sd_device_get_sysattr_value(dev, "addr_len", &s) >= 0); in test_link_info_one()
43 assert_se(sd_device_get_sysattr_value(dev, "address", &s) >= 0); in test_link_info_one()
50 assert_se(sd_device_get_sysattr_value(dev, "broadcast", &s) >= 0); in test_link_info_one()
64 assert_se(sd_device_get_sysattr_value(dev, "mtu", &s) >= 0); in test_link_info_one()
73 assert_se(sd_device_get_sysattr_value(dev, "iflink", &s) >= 0); in test_link_info_one()
82 assert_se(sd_device_get_sysattr_value(dev, "link_mode", &s) >= 0); in test_link_info_one()
91 assert_se(sd_device_get_sysattr_value(dev, "ifalias", &s) >= 0); in test_link_info_one()
98 assert_se(sd_device_get_sysattr_value(dev, "netdev_group", &s) >= 0); in test_link_info_one()
109 (void) sd_device_get_sysattr_value(dev, "phys_port_id", &s); in test_link_info_one()
[all …]
Dudev-builtin-usb_id.c278 (void) sd_device_get_sysattr_value(dev_interface, "bInterfaceNumber", &ifnum); in builtin_usb_id()
279 (void) sd_device_get_sysattr_value(dev_interface, "driver", &driver); in builtin_usb_id()
281 r = sd_device_get_sysattr_value(dev_interface, "bInterfaceClass", &if_class); in builtin_usb_id()
290 … if (sd_device_get_sysattr_value(dev_interface, "bInterfaceSubClass", &if_subclass) >= 0) in builtin_usb_id()
325 r = sd_device_get_sysattr_value(dev_scsi, "vendor", &scsi_vendor); in builtin_usb_id()
334 r = sd_device_get_sysattr_value(dev_scsi, "model", &scsi_model); in builtin_usb_id()
343 r = sd_device_get_sysattr_value(dev_scsi, "type", &scsi_type); in builtin_usb_id()
350 r = sd_device_get_sysattr_value(dev_scsi, "rev", &scsi_rev); in builtin_usb_id()
366 r = sd_device_get_sysattr_value(dev_usb, "idVendor", &vendor_id); in builtin_usb_id()
370 r = sd_device_get_sysattr_value(dev_usb, "idProduct", &product_id); in builtin_usb_id()
[all …]
Dudev-builtin-path_id.c127 if (sd_device_get_sysattr_value(fcdev, "port_name", &port) < 0) in handle_scsi_fibre_channel()
152 if (sd_device_get_sysattr_value(sasdev, "sas_address", &sas_address) < 0) in handle_scsi_sas_wide_port()
188 if (sd_device_get_sysattr_value(port_sasdev, "num_phys", &phy_count) < 0) in handle_scsi_sas()
196 if (sd_device_get_sysattr_value(target_sasdev, "phy_identifier", &phy_id) < 0) in handle_scsi_sas()
208 if (sd_device_get_sysattr_value(expander_sasdev, "sas_address", &sas_address) < 0) in handle_scsi_sas()
246 if (sd_device_get_sysattr_value(sessiondev, "targetname", &target) < 0) in handle_scsi_iscsi()
255 if (sd_device_get_sysattr_value(conndev, "persistent_address", &addr) < 0) in handle_scsi_iscsi()
257 if (sd_device_get_sysattr_value(conndev, "persistent_port", &port) < 0) in handle_scsi_iscsi()
290 if (sd_device_get_sysattr_value(atadev, "port_no", &port_no) < 0) in handle_scsi_ata()
398 if (sd_device_get_sysattr_value(vmbusdev, "device_id", &guid_str) < 0) in handle_scsi_hyperv()
[all …]
Dudev-builtin-input_id.c87 if (sd_device_get_sysattr_value(pdev, attr, &v) < 0) in get_cap_mask()
135 if (sd_device_get_sysattr_value(dev, "id/bustype", &v) >= 0) in get_input_id()
137 if (sd_device_get_sysattr_value(dev, "id/vendor", &v) >= 0) in get_input_id()
139 if (sd_device_get_sysattr_value(dev, "id/product", &v) >= 0) in get_input_id()
141 if (sd_device_get_sysattr_value(dev, "id/version", &v) >= 0) in get_input_id()
377 if (sd_device_get_sysattr_value(pdev, "capabilities/ev", &s) >= 0) in builtin_input_id()
Dudev-builtin-net_id.c179 if (sd_device_get_sysattr_value(names->pcidev, "acpi_index", &attr) >= 0) in dev_pci_onboard()
183 r = sd_device_get_sysattr_value(names->pcidev, "index", &attr); in dev_pci_onboard()
201 if (sd_device_get_sysattr_value(dev, "dev_port", &attr) >= 0) { in dev_pci_onboard()
222 if (sd_device_get_sysattr_value(names->pcidev, "label", &names->pci_onboard_label) >= 0) in dev_pci_onboard()
253 if (sd_device_get_sysattr_value(dev, "ari_enabled", &a) < 0) in is_pci_ari_enabled()
262 if (sd_device_get_sysattr_value(dev, "modalias", &v) < 0) in is_pci_bridge()
302 if (sd_device_get_sysattr_value(dev, "function_id", &attr) < 0) in parse_hotplug_slot_from_function_id()
359 if (sd_device_get_sysattr_value(dev, "dev_port", &attr) >= 0) { in dev_pci_slot()
371 sd_device_get_sysattr_value(dev, "dev_id", &attr) >= 0) { in dev_pci_slot()
840 r = sd_device_get_sysattr_value(dev, "addr_assign_type", &s); in names_mac()
[all …]
Dudev-builtin-hwdb.c53 if (sd_device_get_sysattr_value(dev, "idVendor", &v) < 0) in modalias_usb()
55 if (sd_device_get_sysattr_value(dev, "idProduct", &p) < 0) in modalias_usb()
61 (void) sd_device_get_sysattr_value(dev, "product", &n); in modalias_usb()
Dudev-netlink.c308 return sd_device_get_sysattr_value(device, sysattr, ret_value); in device_get_sysattr_value_maybe_from_netlink()
313 return sd_device_get_sysattr_value(device, sysattr, ret_value); in device_get_sysattr_value_maybe_from_netlink()
329 return sd_device_get_sysattr_value(device, sysattr, ret_value); in device_get_sysattr_value_maybe_from_netlink()
Dudev-builtin-keyboard.c36 r = sd_device_get_sysattr_value(atkbd, "force_release", &cur); in install_force_release()
Dudevadm-info.c116 r = sd_device_get_sysattr_value(device, name, &value); in print_all_attributes()
/systemd-251/src/backlight/
Dbacklight.c80 sd_device_get_sysattr_value(parent, "class", &value) >= 0) { in find_pci_or_platform_parent()
154 r = sd_device_get_sysattr_value(device, "type", &v); in validate_device()
187 if (sd_device_get_sysattr_value(other, "type", &v) < 0 || in validate_device()
236 r = sd_device_get_sysattr_value(device, "max_brightness", &s); in get_max_brightness()
317 r = sd_device_get_sysattr_value(device, "actual_brightness", &value); in read_brightness()
345 r = sd_device_get_sysattr_value(device, "brightness", &value); in read_brightness()
/systemd-251/src/login/
Dsysfs-show.c65 if (sd_device_get_sysattr_value(dev_list[*i_dev], "name", &name) < 0) in show_sysfs_one()
66 (void) sd_device_get_sysattr_value(dev_list[*i_dev], "id", &name); in show_sysfs_one()
Dlogind-core.c628 … if (sd_device_get_sysattr_value(d, "enabled", &enabled) < 0 || !streq(enabled, "enabled")) in manager_count_external_displays()
633 … if (sd_device_get_sysattr_value(d, "status", &status) < 0 || !streq(status, "disconnected")) in manager_count_external_displays()
/systemd-251/src/shared/
Dudev-util.c552 r = sd_device_get_sysattr_value(dev, attr, &val); in udev_resolve_subsys_kernel()
623 r = sd_device_get_sysattr_value(d, "power_role", &val); in device_is_power_sink()
671 r = sd_device_get_sysattr_value(d, "type", &val); in on_ac_power()
698 r = sd_device_get_sysattr_value(d, "online", &val); in on_ac_power()
Dnetif-sriov.c212 r = sd_device_get_sysattr_value(device, "device/sriov_numvfs", &str); in sr_iov_get_num_vfs()
265 r = sd_device_get_sysattr_value(device, "device/sriov_totalvfs", &str); in sr_iov_set_num_vfs()
/systemd-251/src/libsystemd/sd-device/
Ddevice-util.c14 if (sd_device_get_sysattr_value(device, sysattr, &value) < 0) in device_match_sysattr_value()
Dtest-sd-device.c178 r = sd_device_get_sysattr_value(d, "name_assign_type", &val); in test_sd_device_one()
Dtest-sd-device-monitor.c173 assert_se(sd_device_get_sysattr_value(device, sysattr, &sysattr_value) >= 0); in test_sysattr_filter()
Dsd-device.c2096 _public_ int sd_device_get_sysattr_value(sd_device *device, const char *sysattr, const char **ret_v… in sd_device_get_sysattr_value() function
/systemd-251/src/systemd/
Dsd-device.h106 int sd_device_get_sysattr_value(sd_device *device, const char *sysattr, const char **_value);
/systemd-251/src/rfkill/
Drfkill.c86 r = sd_device_get_sysattr_value(device, "name", &name); in find_device()
/systemd-251/src/libsystemd/
Dlibsystemd.sym621 sd_device_get_sysattr_value;
/systemd-251/src/libudev/
Dlibudev-device.c747 r = sd_device_get_sysattr_value(udev_device->device, sysattr, &value); in udev_device_get_sysattr_value()
/systemd-251/src/udev/net/
Dlink-config.c314 r = sd_device_get_sysattr_value(device, attr, &s); in device_unsigned_attribute()
/systemd-251/src/hostname/
Dhostnamed.c223 (void) sd_device_get_sysattr_value(device, sysattr, &s); in get_hardware_firmware_data()
/systemd-251/src/mount/
Dmount-tool.c1201 if (sd_device_get_sysattr_value(d, "removable", &v) >= 0) in acquire_removable()

12