return 0;
system_bridge_delif(&bst->dev, bm->dev.dev);
- release_device(bm->dev.dev);
+ device_release(bm->dev.dev);
return 0;
}
return ret;
}
-void release_device(struct device *dev)
+void device_release(struct device *dev)
{
dev->active--;
DPRINTF("release device %s, new refcount: %d\n", dev->ifname, dev->active);
void device_set_present(struct device *dev, bool state);
int device_claim(struct device *dev);
-void release_device(struct device *dev);
+void device_release(struct device *dev);
int check_device_state(struct device *dev);
void device_free_all(void);
mark_interface_down(struct interface *iface)
{
interface_del_ctx_addr(iface, NULL);
- release_device(iface->main_dev.dev);
+ device_release(iface->main_dev.dev);
iface->state = IFS_DOWN;
}
if (!up) {
vldev->set_state(dev, false);
system_vlan_del(dev);
- release_device(vldev->dep.dev);
+ device_release(vldev->dep.dev);
return 0;
}
system_vlan_add(vldev->dep.dev, vldev->id);
ret = vldev->set_state(dev, true);
if (ret)
- release_device(vldev->dep.dev);
+ device_release(vldev->dep.dev);
return ret;
}