void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason)

{

    BdrvOpBlocker *blocker;

    assert((int) op >= 0 && op < BLOCK_OP_TYPE_MAX);



    blocker = g_malloc0(sizeof(BdrvOpBlocker));

    blocker->reason = reason;

    QLIST_INSERT_HEAD(&bs->op_blockers[op], blocker, list);

}

void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason)

{

    BdrvOpBlocker *blocker;

    assert((int) op >= 0 && op < BLOCK_OP_TYPE_MAX);



    blocker = g_malloc0(sizeof(BdrvOpBlocker));

    blocker->reason = reason;

    QLIST_INSERT_HEAD(&bs->op_blockers[op], blocker, list);

}

    blocker = g_malloc0(sizeof(BdrvOpBlocker));
void FUNC_0(BlockDriverState *VAR_0, BlockOpType VAR_1, Error *VAR_2)

{

    BdrvOpBlocker *blocker;

    assert((int) VAR_1 >= 0 && VAR_1 < BLOCK_OP_TYPE_MAX);



    blocker = g_malloc0(sizeof(BdrvOpBlocker));

    blocker->VAR_2 = VAR_2;

    QLIST_INSERT_HEAD(&VAR_0->op_blockers[VAR_1], blocker, list);

}

void FUNC_0(BlockDriverState *VAR_0, BlockOpType VAR_1, Error *VAR_2)
{ BdrvOpBlocker *blocker; assert((int) VAR_1 >= 0 && VAR_1 < BLOCK_OP_TYPE_MAX); blocker = g_malloc0(sizeof(BdrvOpBlocker)); blocker->VAR_2 = VAR_2; QLIST_INSERT_HEAD(&VAR_0->op_blockers[VAR_1], blocker, list); }