That's exactly what I've been doing: comparing the verbs.h comments
to Chapters 10 and 11. But I'm at an impasse for a few things.
For example, is there any way to have IBverbs invoke a callback
function when an item arrives on the completion queue? The IBA spec
mentions a "Completion Event Handler"; is this what I'm looking for?
If so, how do I use it in IBverbs?
One function I'm kind of confused with is ibv_req_notify_cq(). Is the
second parameter simply a true / false value? This isn't very obvious
since the rc_pingpong.c example file passes a 0 value when it
requests CQ notification.
Another confusing one is ibv_get_cq_event(). Am I correct in assuming
that this is a blocking function? That's the impression I get from
the example codes and from the fact that struct ibv_comp_channel
appears to merely consist of a file descriptor. My impression is that
it "wakes up" when an element appears on the CQ, but that it requires
the use of ibv_poll_cq() to actually obtain that element. Is this
correct?
Thanks for any pointers you guys can give me.
- Chris Aycock
On Mar 23, 2006, at 4:19 AM, Michael S. Tsirkin wrote:
Quoting r. Bryan O'Sullivan <[EMAIL PROTECTED]>:
Specifically, I would like to have some
information regarding how to use libibverbs, such as a spec sheet,
etc.
There appears to be no documentation for libibverbs, either.
Roland, is
this correct? If this is the case, do you have any plans to provide
documentation?
infiniband/verbs.h is pretty well commented, so you can look there.
libibverbs API matches IB verbs very closely. So, look in chapters
10 and 11 of
the infiniband spec.
BTW, Roland, given that libibverbs headers are commented in the
kernel-doc
format, wouldn't it be possible to run kernel-doc on them and produce
man pages? what would be the best way to do it? html documentation
would be nice too, we could also upload a copy to openib web site
once in a while (each release?).
--
Michael S. Tsirkin
Staff Engineer, Mellanox Technologies
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general