static int vhost_user_cleanup(struct vhost_dev *dev)

{

    struct vhost_user *u;



    assert(dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER);



    u = dev->opaque;

    if (u->slave_fd >= 0) {


        close(u->slave_fd);

        u->slave_fd = -1;

    }

    g_free(u);

    dev->opaque = 0;



    return 0;

}
static int vhost_user_cleanup(struct vhost_dev *dev)

{

    struct vhost_user *u;



    assert(dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER);



    u = dev->opaque;

    if (u->slave_fd >= 0) {


        close(u->slave_fd);

        u->slave_fd = -1;

    }

    g_free(u);

    dev->opaque = 0;



    return 0;

}
static int FUNC_0(struct vhost_dev *VAR_0)

{

    struct vhost_user *VAR_1;



    assert(VAR_0->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER);



    VAR_1 = VAR_0->opaque;

    if (VAR_1->slave_fd >= 0) {


        close(VAR_1->slave_fd);

        VAR_1->slave_fd = -1;

    }

    g_free(VAR_1);

    VAR_0->opaque = 0;



    return 0;

}
static int FUNC_0(struct vhost_dev *VAR_0)
{ struct vhost_user *VAR_1; assert(VAR_0->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER); VAR_1 = VAR_0->opaque; if (VAR_1->slave_fd >= 0) { close(VAR_1->slave_fd); VAR_1->slave_fd = -1; } g_free(VAR_1); VAR_0->opaque = 0; return 0; }