+static void export_name_devpath(struct udevice *udev) {
+ printf("%s=%s/%s\n", udev->devpath, udev_root, udev->name);
+}
+
+static void export_record(struct udevice *udev) {
+ print_record(udev);
+ printf("\n");
+}
+
+static void export_db(void fnct(struct udevice *udev)) {
+ LIST_HEAD(name_list);
+ struct name_entry *name_loop;
+
+ udev_db_get_all_entries(&name_list);
+ list_for_each_entry(name_loop, &name_list, node) {
+ struct udevice udev_db;
+
+ udev_init_device(&udev_db, NULL, NULL, NULL);
+ if (udev_db_get_device(&udev_db, name_loop->name) == 0)
+ fnct(&udev_db);
+ udev_cleanup_device(&udev_db);
+ }
+ name_list_cleanup(&name_list);
+}
+
+static void print_help(void)