+ /* open the device */
+ snprintf(path, sizeof(path), "%s%s", sysfs_path, udev.devpath);
+ path[sizeof(path)-1] = '\0';
+ class_dev = sysfs_open_class_device_path(path);
+ if (class_dev == NULL) {
+ info("sysfs_open_class_device_path failed");
+ return 1;
+ }
+
+ info("opened class_dev->name='%s'", class_dev->name);
+
+ /* simulate node creation with test flag */
+ udev.test_run = 1;
+ udev_add_device(&udev, class_dev);