Function ibverbs::ffi::ibv_ack_cq_events [] [src]

pub unsafe extern "C" fn ibv_ack_cq_events(cq: *mut ibv_cq, nevents: c_uint)

ibv_ack_cq_events - Acknowledge CQ completion events @cq: CQ to acknowledge events for @nevents: Number of events to acknowledge.

All completion events which are returned by ibv_get_cq_event() must be acknowledged. To avoid races, ibv_destroy_cq() will wait for all completion events to be acknowledged, so there should be a one-to-one correspondence between acks and successful gets. An application may accumulate multiple completion events and acknowledge them in a single call to ibv_ack_cq_events() by passing the number of events to ack in @nevents.