[openib-general] Re: ibv_get_async_event

Sean Hefty mshefty at ichips.intel.com
Tue Sep 6 15:03:27 PDT 2005


Roland Dreier wrote:
> The API I came up with is the following:
> 
> 	/**
> 	 * ibv_ack_cq_events - Free an async event
> 	 * @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.  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 by passing the number of events to ack in @nevents.
> 	 */
> 	extern void ibv_ack_cq_events(struct ibv_cq *cq, unsigned int nevents);
> 
> (I also renamed ibv_put_async_event() to ibv_ack_async_event() for
> symmetry)

I think that this would work well.  I will update the uCM put event to match.

- Sean



More information about the general mailing list