static int vhost_user_set_vring_addr(struct vhost_dev *dev,

                                     struct vhost_vring_addr *addr)

{

    VhostUserMsg msg = {

        .request = VHOST_USER_SET_VRING_ADDR,

        .flags = VHOST_USER_VERSION,

        .payload.addr = *addr,

        .size = sizeof(msg.payload.addr),

    };



    vhost_user_write(dev, &msg, NULL, 0);



    return 0;

}

static int vhost_user_set_vring_addr(struct vhost_dev *dev,

                                     struct vhost_vring_addr *addr)

{

    VhostUserMsg msg = {

        .request = VHOST_USER_SET_VRING_ADDR,

        .flags = VHOST_USER_VERSION,

        .payload.addr = *addr,

        .size = sizeof(msg.payload.addr),

    };



    vhost_user_write(dev, &msg, NULL, 0);



    return 0;

}

    vhost_user_write(dev, &msg, NULL, 0);     vhost_user_write(dev, &msg, NULL, 0);     vhost_user_write(dev, &msg, NULL, 0);     vhost_user_write(dev, &msg, NULL, 0);     vhost_user_write(dev, &msg, NULL, 0);     vhost_user_write(dev, &msg, NULL, 0);     vhost_user_write(dev, &msg, NULL, 0);
static int FUNC_0(struct vhost_dev *VAR_0,

                                     struct vhost_vring_addr *VAR_1)

{

    VhostUserMsg msg = {

        .request = VHOST_USER_SET_VRING_ADDR,

        .flags = VHOST_USER_VERSION,

        .payload.VAR_1 = *VAR_1,

        .size = sizeof(msg.payload.VAR_1),

    };



    vhost_user_write(VAR_0, &msg, NULL, 0);



    return 0;

}

static int FUNC_0(struct vhost_dev *VAR_0,
struct vhost_vring_addr *VAR_1)
{ VhostUserMsg msg = { .request = VHOST_USER_SET_VRING_ADDR,
.flags = VHOST_USER_VERSION,
.payload.VAR_1 = *VAR_1,
.size = sizeof(msg.payload.VAR_1),
}; vhost_user_write(VAR_0, &msg, NULL, 0); return 0; }