int bdrv_attach(BlockDriverState *bs, DeviceState *qdev)

{

    if (bs->peer) {

        return -EBUSY;

    }

    bs->peer = qdev;

    return 0;

}

int bdrv_attach(BlockDriverState *bs, DeviceState *qdev)

{

    if (bs->peer) {

        return -EBUSY;

    }

    bs->peer = qdev;

    return 0;

}

int FUNC_0(BlockDriverState *VAR_0, DeviceState *VAR_1)

{

    if (VAR_0->peer) {

        return -EBUSY;

    }

    VAR_0->peer = VAR_1;

    return 0;

}

int FUNC_0(BlockDriverState *VAR_0, DeviceState *VAR_1)
{ if (VAR_0->peer) { return -EBUSY; } VAR_0->peer = VAR_1; return 0; }