+ if (name)
+ strncpy(dev->ifname, name, IFNAMSIZ);
+
+ fprintf(stderr, "Initialize device '%s'\n", dev->ifname);
+ INIT_LIST_HEAD(&dev->users);
+ dev->type = type;
+}
+
+int init_device(struct device *dev, const struct device_type *type, const char *ifname)
+{
+ int ret;
+
+ init_virtual_device(dev, type, ifname);