Searched refs:modalias (Results 1 - 9 of 9) sorted by relevance

/systemd/src/systemd/
H A Dsd-hwdb.h35 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);
41 #define SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value) \
42 if (sd_hwdb_seek(hwdb, modalias) < 0) { } \
/systemd/src/udev/
H A Dudev-builtin-hwdb.c36 const char *prefix, const char *modalias,
46 lookup = strjoin(prefix, modalias, NULL);
49 modalias = lookup;
52 SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value) {
98 const char *modalias = NULL; local
108 modalias = udev_device_get_property_value(d, "MODALIAS");
111 /* if the usb_device does not have a modalias, compose one */
112 if (!modalias)
113 modalias = modalias_usb(d, s, sizeof(s));
119 if (!modalias)
35 udev_builtin_hwdb_lookup(struct udev_device *dev, const char *prefix, const char *modalias, const char *filter, bool test) argument
[all...]
H A Dudev.h198 int udev_builtin_hwdb_lookup(struct udev_device *dev, const char *prefix, const char *modalias,
/systemd/src/libudev/
H A Dlibudev-hwdb.c118 * @modalias: modalias string
122 * modalias string, whose formats are defined for the Linux kernel modules.
128 _public_ struct udev_list_entry *udev_hwdb_get_properties_list_entry(struct udev_hwdb *hwdb, const char *modalias, unsigned int flags) { argument
131 if (!hwdb || !modalias) {
138 SD_HWDB_FOREACH_PROPERTY(hwdb->hwdb, modalias, key, value) {
H A Dlibudev.h192 struct udev_list_entry *udev_hwdb_get_properties_list_entry(struct udev_hwdb *hwdb, const char *modalias, unsigned int flags);
/systemd/src/libsystemd/sd-hwdb/
H A Dsd-hwdb.c51 char *modalias; member in struct:sd_hwdb
350 free(hwdb->modalias);
383 static int properties_prepare(sd_hwdb *hwdb, const char *modalias) { argument
388 assert(modalias);
390 if (streq_ptr(modalias, hwdb->modalias))
393 mod = strdup(modalias);
401 r = trie_search_f(hwdb, modalias);
405 free(hwdb->modalias);
406 hwdb->modalias
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
[all...]
/systemd/src/hwdb/
H A Dhwdb.c40 * Generic udev properties, key/value database based on modalias strings.
576 const char *modalias; local
582 modalias = argv[1];
588 SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value)
/systemd/src/test/
H A Dtest-libudev.c393 static void test_hwdb(struct udev *udev, const char *modalias) { argument
399 udev_list_entry_foreach(entry, udev_hwdb_get_properties_list_entry(hwdb, modalias, 0))
/systemd/src/network/
H A Dnetworkctl.c262 char modalias[strlen("OUI:XXYYXXYYXXYY") + 1], *desc; local
277 xsprintf(modalias, "OUI:" ETHER_ADDR_FORMAT_STR,
280 r = sd_hwdb_get(hwdb, modalias, "ID_OUI_FROM_DATABASE", &description);

Completed in 28 milliseconds