[openib-general] mthca v. current ib_verbs
Grant Grundler
iod00d at hp.com
Mon Aug 30 18:38:36 PDT 2004
On Tue, Aug 10, 2004 at 01:17:51PM +0900, Masanori ITOH wrote:
> By the way, why not defining macros like the following instead of static
> inline functions?
>
> #define ib_poll_cq(cq, num_entries, wc) cq->device->poll_cq(cq, num_entries, wc);
Macros don't provide typedef checking.
Using static inline lets the compiler check the types for us.
grant
More information about the general
mailing list