/systemd-251/src/libsystemd/sd-device/ ! |
D | device-private.h | 13 int device_new_from_nulstr(sd_device **ret, uint8_t *nulstr, size_t len); 14 int device_new_from_strv(sd_device **ret, char **strv); 15 int device_new_from_watch_handle_at(sd_device **ret, int dirfd, int wd); 16 static inline int device_new_from_watch_handle(sd_device **ret, int wd) { in device_new_from_watch_handle() 20 int device_get_property_bool(sd_device *device, const char *key); 21 int device_get_device_id(sd_device *device, const char **ret); 22 int device_get_devlink_priority(sd_device *device, int *ret); 23 int device_get_watch_handle(sd_device *device); 24 int device_get_devnode_mode(sd_device *device, mode_t *ret); 25 int device_get_devnode_uid(sd_device *device, uid_t *ret); [all …]
|
D | device-internal.h | 13 struct sd_device { struct 26 sd_device *parent; argument 99 int device_new_aux(sd_device **ret); argument 100 int device_add_property_aux(sd_device *device, const char *key, const char *value, bool db); 101 static inline int device_add_property_internal(sd_device *device, const char *key, const char *valu… in device_add_property_internal() 105 int device_set_syspath(sd_device *device, const char *_syspath, bool verify); 106 int device_set_ifindex(sd_device *device, const char *ifindex); 107 int device_set_devmode(sd_device *device, const char *devmode); 108 int device_set_devname(sd_device *device, const char *devname); 109 int device_set_devtype(sd_device *device, const char *devtype); [all …]
|
D | device-private.c | 31 int device_add_property(sd_device *device, const char *key, const char *value) { in device_add_property() 50 int device_add_propertyf(sd_device *device, const char *key, const char *format, ...) { in device_add_propertyf() 71 void device_set_devlink_priority(sd_device *device, int priority) { in device_set_devlink_priority() 77 void device_set_is_initialized(sd_device *device) { in device_set_is_initialized() 83 int device_ensure_usec_initialized(sd_device *device, sd_device *device_old) { in device_ensure_usec_initialized() 96 uint64_t device_get_properties_generation(sd_device *device) { in device_get_properties_generation() 102 uint64_t device_get_tags_generation(sd_device *device) { in device_get_tags_generation() 108 uint64_t device_get_devlinks_generation(sd_device *device) { in device_get_devlinks_generation() 114 int device_get_devnode_mode(sd_device *device, mode_t *ret) { in device_get_devnode_mode() 132 int device_get_devnode_uid(sd_device *device, uid_t *ret) { in device_get_devnode_uid() [all …]
|
D | sd-device.c | 38 int device_new_aux(sd_device **ret) { in device_new_aux() 39 sd_device *device; in device_new_aux() 43 device = new(sd_device, 1); in device_new_aux() 47 *device = (sd_device) { in device_new_aux() 60 static sd_device *device_free(sd_device *device) { in device_free() 86 DEFINE_PUBLIC_TRIVIAL_REF_UNREF_FUNC(sd_device, sd_device, device_free); 88 int device_add_property_aux(sd_device *device, const char *key, const char *value, bool db) { in device_add_property_aux() 140 int device_set_syspath(sd_device *device, const char *_syspath, bool verify) { in device_set_syspath() 253 _public_ int sd_device_new_from_syspath(sd_device **ret, const char *syspath) { in sd_device_new_from_syspath() 254 _cleanup_(sd_device_unrefp) sd_device *device = NULL; in sd_device_new_from_syspath() [all …]
|
D | device-enumerator.c | 33 sd_device **devices; 71 static void device_unref_many(sd_device **devices, size_t n) { in device_unref_many() 226 int device_enumerator_add_match_parent_incremental(sd_device_enumerator *enumerator, sd_device *par… in device_enumerator_add_match_parent_incremental() 246 _public_ int sd_device_enumerator_add_match_parent(sd_device_enumerator *enumerator, sd_device *par… in sd_device_enumerator_add_match_parent() 315 static int device_compare(sd_device * const *a, sd_device * const *b) { in device_compare() 324 assert_se(sd_device_get_devpath(*(sd_device**) a, &devpath_a) >= 0); in device_compare() 325 assert_se(sd_device_get_devpath(*(sd_device**) b, &devpath_b) >= 0); in device_compare() 341 sd_device **devices; in enumerator_sort_devices() 342 sd_device *device; in enumerator_sort_devices() 350 devices = new(sd_device*, hashmap_size(enumerator->devices_by_syspath)); in enumerator_sort_devices() [all …]
|
D | device-enumerator-private.h | 20 int device_enumerator_add_device(sd_device_enumerator *enumerator, sd_device *device); 21 int device_enumerator_add_parent_devices(sd_device_enumerator *enumerator, sd_device *device); 23 int device_enumerator_add_match_parent_incremental(sd_device_enumerator *enumerator, sd_device *par… 25 sd_device *device_enumerator_get_first(sd_device_enumerator *enumerator); 26 sd_device *device_enumerator_get_next(sd_device_enumerator *enumerator); 27 sd_device **device_enumerator_get_devices(sd_device_enumerator *enumerator, size_t *ret_n_devices);
|
D | test-sd-device-monitor.c | 19 static int monitor_handler(sd_device_monitor *m, sd_device *d, void *userdata) { in monitor_handler() 30 _cleanup_(sd_device_unrefp) sd_device *loopback = NULL; in test_receive_device_fail() 54 static void test_send_receive_one(sd_device *device, bool subsystem_filter, bool tag_filter, bool u… in test_send_receive_one() 89 static void test_subsystem_filter(sd_device *device) { in test_subsystem_filter() 93 sd_device *d; in test_subsystem_filter() 127 static void test_tag_filter(sd_device *device) { in test_tag_filter() 131 sd_device *d; in test_tag_filter() 163 static void test_sysattr_filter(sd_device *device, const char *sysattr) { in test_sysattr_filter() 167 sd_device *d; in test_sysattr_filter() 205 static void test_parent_filter(sd_device *device) { in test_parent_filter() [all …]
|
D | test-sd-device.c | 19 static void test_sd_device_one(sd_device *d) { in test_sd_device_one() 20 _cleanup_(sd_device_unrefp) sd_device *dev = NULL; in test_sd_device_one() 184 sd_device *d; in TEST() 198 sd_device *d; in TEST() 214 sd_device *d; in test_sd_device_enumerator_filter_subsystem_one() 223 sd_device *t; in test_sd_device_enumerator_filter_subsystem_one() 256 sd_device *d; in TEST() 319 _cleanup_(sd_device_unrefp) sd_device *device = NULL, *from_nulstr = NULL; in TEST()
|
/systemd-251/src/systemd/ ! |
D | sd-device.h | 33 typedef struct sd_device sd_device; typedef 53 typedef int (*sd_device_monitor_handler_t)(sd_device_monitor *m, sd_device *device, void *userdata); 57 sd_device *sd_device_ref(sd_device *device); 58 sd_device *sd_device_unref(sd_device *device); 60 int sd_device_new_from_syspath(sd_device **ret, const char *syspath); 61 int sd_device_new_from_devnum(sd_device **ret, char type, dev_t devnum); 62 int sd_device_new_from_subsystem_sysname(sd_device **ret, const char *subsystem, const char *sysnam… 63 int sd_device_new_from_device_id(sd_device **ret, const char *id); 64 int sd_device_new_from_stat_rdev(sd_device **ret, const struct stat *st); 65 int sd_device_new_from_devname(sd_device **ret, const char *devname); [all …]
|
/systemd-251/src/udev/ ! |
D | udev-builtin-path_id.c | 58 static int format_lun_number(sd_device *dev, char **path) { in format_lun_number() 82 static sd_device *skip_subsystem(sd_device *dev, const char *subsys) { in skip_subsystem() 83 sd_device *parent; in skip_subsystem() 112 static sd_device *handle_scsi_fibre_channel(sd_device *parent, char **path) { in handle_scsi_fibre_channel() 113 sd_device *targetdev; in handle_scsi_fibre_channel() 114 _cleanup_(sd_device_unrefp) sd_device *fcdev = NULL; in handle_scsi_fibre_channel() 135 static sd_device *handle_scsi_sas_wide_port(sd_device *parent, char **path) { in handle_scsi_sas_wide_port() 136 sd_device *targetdev, *target_parent; in handle_scsi_sas_wide_port() 137 _cleanup_(sd_device_unrefp) sd_device *sasdev = NULL; in handle_scsi_sas_wide_port() 160 static sd_device *handle_scsi_sas(sd_device *parent, char **path) { in handle_scsi_sas() [all …]
|
D | udev-builtin-net_id.c | 60 sd_device *pcidev; 76 static sd_device *skip_virtio(sd_device *dev) { in skip_virtio() 96 static int get_virtfn_info(sd_device *pcidev, sd_device **ret_physfn_pcidev, char **ret_suffix) { in get_virtfn_info() 97 _cleanup_(sd_device_unrefp) sd_device *physfn_pcidev = NULL; in get_virtfn_info() 167 static int dev_pci_onboard(sd_device *dev, const LinkInfo *info, NetNames *names) { in dev_pci_onboard() 231 static bool is_pci_multifunction(sd_device *dev) { in is_pci_multifunction() 250 static bool is_pci_ari_enabled(sd_device *dev) { in is_pci_ari_enabled() 259 static bool is_pci_bridge(sd_device *dev) { in is_pci_bridge() 281 static int parse_hotplug_slot_from_function_id(sd_device *dev, const char *slots, uint32_t *ret) { in parse_hotplug_slot_from_function_id() 325 static int dev_pci_slot(sd_device *dev, const LinkInfo *info, NetNames *names) { in dev_pci_slot() [all …]
|
D | udevadm-info.c | 86 static int print_all_attributes(sd_device *device, bool is_parent) { in print_all_attributes() 154 static int print_device_chain(sd_device *device) { in print_device_chain() 155 sd_device *child, *parent; in print_device_chain() 181 static int print_record(sd_device *device, const char *prefix) { in print_record() 282 sd_device *d; in export_devices() 405 static int query_device(QueryType query, sd_device* device) { in query_device() 506 sd_device *parent, 507 sd_device *const array[], size_t n, 512 sd_device *device, in output_tree_device() 516 sd_device *const array[], size_t n, in output_tree_device() [all …]
|
D | udev-builtin-hwdb.c | 20 int udev_builtin_hwdb_lookup(sd_device *dev, in udev_builtin_hwdb_lookup() 49 static const char *modalias_usb(sd_device *dev, char *s, size_t size) { in modalias_usb() 67 static int udev_builtin_hwdb_search(sd_device *dev, sd_device *srcdev, in udev_builtin_hwdb_search() 79 for (sd_device *d = srcdev; d; ) { in udev_builtin_hwdb_search() 121 static int builtin_hwdb(sd_device *dev, sd_netlink **rtnl, int argc, char *argv[], bool test) { in builtin_hwdb() 133 _cleanup_(sd_device_unrefp) sd_device *srcdev = NULL; in builtin_hwdb()
|
D | udev-node.h | 12 sd_device *dev, 25 int udev_node_remove(sd_device *dev); 26 int udev_node_update(sd_device *dev, sd_device *dev_old);
|
D | udevadm-util.c | 13 static int find_device_from_path(const char *path, sd_device **ret) { in find_device_from_path() 29 static int find_device_from_unit(const char *unit_name, sd_device **ret) { in find_device_from_unit() 73 int find_device(const char *id, const char *prefix, sd_device **ret) { in find_device() 95 int find_device_with_action(const char *id, sd_device_action_t action, sd_device **ret) { in find_device_with_action() 96 _cleanup_(sd_device_unrefp) sd_device *dev = NULL; in find_device_with_action()
|
D | udev-builtin-keyboard.c | 20 static int install_force_release(sd_device *dev, const unsigned *release, unsigned release_count) { in install_force_release() 21 sd_device *atkbd; in install_force_release() 58 static int map_keycode(sd_device *dev, int fd, int scancode, const char *keycode) { in map_keycode() 110 static int override_abs(sd_device *dev, int fd, unsigned evcode, const char *value) { in override_abs() 134 static int set_trackpoint_sensitivity(sd_device *dev, const char *value) { in set_trackpoint_sensitivity() 135 sd_device *pdev; in set_trackpoint_sensitivity() 162 static int builtin_keyboard(sd_device *dev, sd_netlink **rtnl, int argc, char *argv[], bool test) { in builtin_keyboard()
|
D | udev-builtin.h | 33 int (*cmd)(sd_device *dev, sd_netlink **rtnl, int argc, char *argv[], bool test); 77 int udev_builtin_run(sd_device *dev, sd_netlink **rtnl, UdevBuiltinCommand cmd, const char *command… 80 int udev_builtin_add_property(sd_device *dev, bool test, const char *key, const char *val); 81 int udev_builtin_hwdb_lookup(sd_device *dev, const char *prefix, const char *modalias,
|
D | udev-event.h | 22 sd_device *dev; 23 sd_device *dev_parent; 24 sd_device *dev_db_clone; 50 UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl, int log_level);
|
D | udev-node.c | 67 static int node_symlink(sd_device *dev, const char *node, const char *slink) { in node_symlink() 113 static int link_find_prioritized(sd_device *dev, bool add, const char *stackdir, char **ret) { in link_find_prioritized() 195 _cleanup_(sd_device_unrefp) sd_device *tmp_dev = NULL; in link_find_prioritized() 267 static int update_timestamp(sd_device *dev, const char *path, struct stat *prev) { in update_timestamp() 317 static int update_stack_directory(sd_device *dev, const char *dirname, bool add) { in update_stack_directory() 418 static int link_update(sd_device *dev, const char *slink_in, bool add) { in link_update() 492 static int device_get_devpath_by_devnum(sd_device *dev, char **ret) { in device_get_devpath_by_devnum() 511 int udev_node_update(sd_device *dev, sd_device *dev_old) { in udev_node_update() 568 int udev_node_remove(sd_device *dev) { in udev_node_remove() 596 sd_device *dev, /* can be NULL, only used for logging. */ in udev_node_apply_permissions_impl() [all …]
|
D | udev-builtin-input_id.c | 48 static void extract_info(sd_device *dev, bool test) { in extract_info() 77 static void get_cap_mask(sd_device *pdev, const char* attr, in get_cap_mask() 131 static struct input_id get_input_id(sd_device *dev) { in get_input_id() 148 static bool test_pointers(sd_device *dev, in test_pointers() 317 static bool test_key(sd_device *dev, in test_key() 359 static int builtin_input_id(sd_device *dev, sd_netlink **rtnl, int argc, char *argv[], bool test) { in builtin_input_id() 360 sd_device *pdev; in builtin_input_id()
|
/systemd-251/src/shared/ ! |
D | udev-util.h | 39 int device_wait_for_initialization(sd_device *device, const char *subsystem, usec_t deadline, sd_de… 40 int device_wait_for_devlink(const char *path, const char *subsystem, usec_t deadline, sd_device **r… 41 int device_is_renaming(sd_device *dev); 43 bool device_for_action(sd_device *dev, sd_device_action_t action); 45 void log_device_uevent(sd_device *device, const char *str); 75 … sd_device *_d = (dev); \
|
D | udev-util.c | 128 static int device_new_from_dev_path(const char *devlink, sd_device **ret_device) { in device_new_from_dev_path() 152 sd_device *device; 161 static int device_monitor_handler(sd_device_monitor *monitor, sd_device *device, void *userdata) { in device_monitor_handler() 208 sd_device *_device, in device_wait_for_initialization_internal() 212 sd_device **ret) { in device_wait_for_initialization_internal() 218 _cleanup_(sd_device_unrefp) sd_device *device = sd_device_ref(_device); in device_wait_for_initialization_internal() 304 int device_wait_for_initialization(sd_device *device, const char *subsystem, usec_t deadline, sd_de… in device_wait_for_initialization() 308 int device_wait_for_devlink(const char *devlink, const char *subsystem, usec_t deadline, sd_device … in device_wait_for_devlink() 312 int device_is_renaming(sd_device *dev) { in device_is_renaming() 326 bool device_for_action(sd_device *dev, sd_device_action_t a) { in device_for_action() [all …]
|
D | netif-util.h | 13 int net_get_type_string(sd_device *device, uint16_t iftype, char **ret); 14 const char *net_get_persistent_name(sd_device *device); 15 int net_get_unique_predictable_data(sd_device *device, bool use_sysname, uint64_t *ret);
|
/systemd-251/src/backlight/ ! |
D | backlight.c | 47 static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) { in find_pci_or_platform_parent() 49 sd_device *parent; in find_pci_or_platform_parent() 102 static int same_device(sd_device *a, sd_device *b) { in same_device() 131 static int validate_device(sd_device *device) { in validate_device() 134 sd_device *parent, *other; in validate_device() 182 sd_device *other_parent; in validate_device() 229 static int get_max_brightness(sd_device *device, unsigned *ret) { in get_max_brightness() 247 static int clamp_brightness(sd_device *device, bool saved, unsigned max_brightness, unsigned *brigh… in clamp_brightness() 282 static bool shall_clamp(sd_device *d) { in shall_clamp() 304 static int read_brightness(sd_device *device, unsigned max_brightness, unsigned *ret_brightness) { in read_brightness() [all …]
|
/systemd-251/src/libudev/ ! |
D | libudev-device.c | 49 sd_device *device; 202 struct udev_device *udev_device_new(struct udev *udev, sd_device *device) { in udev_device_new() 257 _cleanup_(sd_device_unrefp) sd_device *device = NULL; in udev_device_new_from_syspath() 284 _cleanup_(sd_device_unrefp) sd_device *device = NULL; in udev_device_new_from_devnum() 313 _cleanup_(sd_device_unrefp) sd_device *device = NULL; in udev_device_new_from_device_id() 339 _cleanup_(sd_device_unrefp) sd_device *device = NULL; in udev_device_new_from_subsystem_sysname() 364 _cleanup_(sd_device_unrefp) sd_device *device = NULL; in udev_device_new_from_environment() 375 sd_device *parent; in device_new_from_parent() 439 sd_device *parent; in udev_device_get_parent_with_subsystem_devtype() 901 sd_device *udev_device_get_sd_device(struct udev_device *udev_device) { in udev_device_get_sd_device()
|