static void iscsi_attach_aio_context(BlockDriverState *bs,

                                     AioContext *new_context)

{

    IscsiLun *iscsilun = bs->opaque;



    iscsilun->aio_context = new_context;

    iscsi_set_events(iscsilun);



#if defined(LIBISCSI_FEATURE_NOP_COUNTER)

    /* Set up a timer for sending out iSCSI NOPs */

    iscsilun->nop_timer = aio_timer_new(iscsilun->aio_context,

                                        QEMU_CLOCK_REALTIME, SCALE_MS,

                                        iscsi_nop_timed_event, iscsilun);

    timer_mod(iscsilun->nop_timer,

              qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + NOP_INTERVAL);

#endif

}

static void iscsi_attach_aio_context(BlockDriverState *bs,

                                     AioContext *new_context)

{

    IscsiLun *iscsilun = bs->opaque;



    iscsilun->aio_context = new_context;

    iscsi_set_events(iscsilun);



#if defined(LIBISCSI_FEATURE_NOP_COUNTER)

    

    iscsilun->nop_timer = aio_timer_new(iscsilun->aio_context,

                                        QEMU_CLOCK_REALTIME, SCALE_MS,

                                        iscsi_nop_timed_event, iscsilun);

    timer_mod(iscsilun->nop_timer,

              qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + NOP_INTERVAL);

#endif

}

#endif #endif #endif #endif #endif #endif #endif #endif #if defined(LIBISCSI_FEATURE_NOP_COUNTER) #endif #if defined(LIBISCSI_FEATURE_NOP_COUNTER) #endif #endif #endif #endif
static void FUNC_0(BlockDriverState *VAR_0,

                                     AioContext *VAR_1)

{

    IscsiLun *iscsilun = VAR_0->opaque;



    iscsilun->aio_context = VAR_1;

    iscsi_set_events(iscsilun);



#if defined(LIBISCSI_FEATURE_NOP_COUNTER)

    

    iscsilun->nop_timer = aio_timer_new(iscsilun->aio_context,

                                        QEMU_CLOCK_REALTIME, SCALE_MS,

                                        iscsi_nop_timed_event, iscsilun);

    timer_mod(iscsilun->nop_timer,

              qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + NOP_INTERVAL);

#endif

}

static void FUNC_0(BlockDriverState *VAR_0,
AioContext *VAR_1)
{ IscsiLun *iscsilun = VAR_0->opaque; iscsilun->aio_context = VAR_1; iscsi_set_events(iscsilun); #if defined(LIBISCSI_FEATURE_NOP_COUNTER)
iscsilun->nop_timer = aio_timer_new(iscsilun->aio_context,
QEMU_CLOCK_REALTIME, SCALE_MS,
iscsi_nop_timed_event, iscsilun); timer_mod(iscsilun->nop_timer,
qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + NOP_INTERVAL); #endif
}