/systemd/src/libsystemd/sd-hwdb/ |
H A D | hwdb-util.h | 22 #include "sd-hwdb.h" 26 bool hwdb_validate(sd_hwdb *hwdb);
|
H A D | sd-hwdb.c | 30 #include "sd-hwdb.h" 35 #include "hwdb-internal.h" 36 #include "hwdb-util.h" 100 static const struct trie_child_entry_f *trie_node_children(sd_hwdb *hwdb, const struct trie_node_f *node) { argument 101 return (const struct trie_child_entry_f *)((const char *)node + le64toh(hwdb->head->node_size)); 104 static const struct trie_value_entry_f *trie_node_values(sd_hwdb *hwdb, const struct trie_node_f *node) { argument 107 base += le64toh(hwdb->head->node_size); 108 base += node->children_count * le64toh(hwdb->head->child_entry_size); 112 static const struct trie_node_f *trie_node_from_off(sd_hwdb *hwdb, le64_t off) { argument 113 return (const struct trie_node_f *)(hwdb 116 trie_string(sd_hwdb *hwdb, le64_t off) argument 127 node_lookup_f(sd_hwdb *hwdb, const struct trie_node_f *node, uint8_t c) argument 139 hwdb_add_property(sd_hwdb *hwdb, const char *key, const char *value) argument 168 trie_fnmatch_f(sd_hwdb *hwdb, const struct trie_node_f *node, size_t p, struct linebuf *buf, const char *search) argument 201 trie_search_f(sd_hwdb *hwdb, const char *search) argument 337 sd_hwdb_ref(sd_hwdb *hwdb) argument 345 sd_hwdb_unref(sd_hwdb *hwdb) argument 358 hwdb_validate(sd_hwdb *hwdb) argument 383 properties_prepare(sd_hwdb *hwdb, const char *modalias) argument 412 sd_hwdb_get(sd_hwdb *hwdb, const char *modalias, const char *key, const char **_value) argument 434 sd_hwdb_seek(sd_hwdb *hwdb, const char *modalias) argument 451 sd_hwdb_enumerate(sd_hwdb *hwdb, const char **key, const char **value) argument [all...] |
/systemd/src/libudev/ |
H A D | libudev-hwdb.c | 20 #include "sd-hwdb.h" 23 #include "hwdb-util.h" 27 * SECTION:libudev-hwdb 42 sd_hwdb *hwdb; member in struct:udev_hwdb 53 * Returns: a hwdb context. 57 struct udev_hwdb *hwdb; local 66 hwdb = new0(struct udev_hwdb, 1); 67 if (!hwdb) 70 hwdb->refcount = 1; 71 hwdb 87 udev_hwdb_ref(struct udev_hwdb *hwdb) argument 103 udev_hwdb_unref(struct udev_hwdb *hwdb) argument 128 udev_hwdb_get_properties_list_entry(struct udev_hwdb *hwdb, const char *modalias, unsigned int flags) argument [all...] |
H A D | libudev.h | 190 struct udev_hwdb *udev_hwdb_ref(struct udev_hwdb *hwdb); 191 struct udev_hwdb *udev_hwdb_unref(struct udev_hwdb *hwdb); 192 struct udev_list_entry *udev_hwdb_get_properties_list_entry(struct udev_hwdb *hwdb, const char *modalias, unsigned int flags);
|
/systemd/src/systemd/ |
H A D | sd-hwdb.h | 30 sd_hwdb *sd_hwdb_ref(sd_hwdb *hwdb); 31 sd_hwdb *sd_hwdb_unref(sd_hwdb *hwdb); 35 int sd_hwdb_get(sd_hwdb *hwdb, const char *modalias, const char *key, const char **value); 37 int sd_hwdb_seek(sd_hwdb *hwdb, const char *modalias); 38 int sd_hwdb_enumerate(sd_hwdb *hwdb, const char **key, const char **value); 41 #define SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value) \ 42 if (sd_hwdb_seek(hwdb, modalias) < 0) { } \ 43 else while (sd_hwdb_enumerate(hwdb, &(key), &(value)) > 0)
|
/systemd/src/udev/ |
H A D | udev-builtin-hwdb.c | 25 #include "sd-hwdb.h" 28 #include "hwdb-util.h" 33 static sd_hwdb *hwdb; variable 42 if (!hwdb) 52 SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value) { 144 if (!hwdb) 196 if (hwdb) 199 r = sd_hwdb_new(&hwdb); 208 hwdb = sd_hwdb_unref(hwdb); [all...] |
H A D | udevadm-hwdb.c | 29 #include "hwdb-internal.h" 30 #include "hwdb-util.h" 42 "/etc/udev/hwdb.d", 43 UDEVLIBEXECDIR "/hwdb.d", 544 printf("Usage: udevadm hwdb OPTIONS\n" 626 err = conf_files_list_strv(&files, ".hwdb", root, conf_file_dirs); 628 log_error_errno(err, "failed to enumerate hwdb files: %m"); 654 hwdb_bin = strjoin(root, "/", hwdb_bin_dir, "/hwdb.bin", NULL); 668 _cleanup_(sd_hwdb_unrefp) sd_hwdb *hwdb = NULL; 671 r = sd_hwdb_new(&hwdb); [all...] |
/systemd/src/network/ |
H A D | networkctl.c | 25 #include "sd-hwdb.h" 33 #include "hwdb-util.h" 260 static int ieee_oui(sd_hwdb *hwdb, struct ether_addr *mac, char **ret) { argument 267 if (!hwdb) 280 r = sd_hwdb_get(hwdb, modalias, "ID_OUI_FROM_DATABASE", &description); 295 sd_hwdb *hwdb, 389 r = ieee_oui(hwdb, &mac, gateway_description); 401 sd_hwdb *hwdb, 418 r = get_gateway_description(rtnl, hwdb, local[i].ifindex, local[i].family, &local[i].address, &description); 504 sd_hwdb *hwdb, 293 get_gateway_description( sd_netlink *rtnl, sd_hwdb *hwdb, int ifindex, int family, union in_addr_union *gateway, char **gateway_description) argument 399 dump_gateways( sd_netlink *rtnl, sd_hwdb *hwdb, const char *prefix, int ifindex) argument 502 link_status_one( sd_netlink *rtnl, sd_hwdb *hwdb, const char *name) argument [all...] |
/systemd/src/test/ |
H A D | test-libudev.c | 394 struct udev_hwdb *hwdb; local 397 hwdb = udev_hwdb_new(udev); 399 udev_list_entry_foreach(entry, udev_hwdb_get_properties_list_entry(hwdb, modalias, 0)) 403 hwdb = udev_hwdb_unref(hwdb); 404 assert_se(hwdb == NULL);
|
/systemd/test/TEST-01-BASIC/ |
H A D | test.sh | 65 ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
|
/systemd/src/hwdb/ |
H A D | hwdb.c | 30 #include "hwdb-internal.h" 31 #include "hwdb-util.h" 48 "/etc/udev/hwdb.d", 49 UDEVLIBEXECDIR "/hwdb.d", 574 _cleanup_(sd_hwdb_unrefp) sd_hwdb *hwdb = NULL; 584 r = sd_hwdb_new(&hwdb); 588 SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value) 616 r = conf_files_list_strv(&files, ".hwdb", arg_root, conf_file_dirs); 618 return log_error_errno(r, "failed to enumerate hwdb files: %m"); 642 hwdb_bin = strjoin(arg_root, "/", arg_hwdb_bin_dir, "/hwdb [all...] |
/systemd/test/TEST-06-SELINUX/ |
H A D | test.sh | 119 ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
|