-struct device_hotplug_ops {
- int (*add)(struct device *main, struct device *member);
- int (*del)(struct device *main, struct device *member);
-};
+void device_init_virtual(struct device *dev, const struct device_type *type, const char *name);
+int device_init(struct device *iface, const struct device_type *type, const char *ifname);
+void device_cleanup(struct device *iface);
+struct device *device_get(const char *name, int create);
+void device_add_user(struct device_user *dep, struct device *iface);
+void device_remove_user(struct device_user *dep);
+void device_broadcast_event(struct device *dev, enum device_event ev);