[openib-general] ib_req_ncomp_notif in core_ layer

Roland Dreier roland at topspin.com
Wed Aug 4 12:36:48 PDT 2004


    Michael> Hello!  I am looking at the ib core gen2 code now, and I
    Michael> am puzzled by the fact that some functions just seem to
    Michael> do a check and then copy another one. Taking the
    Michael> following example

    Michael> Its true that req_ncomp_notif could be NULL, but this
    Michael> could be fixed, instead, by modifying it to a reasonable
    Michael> default when the device is initialised.

It's not really a big deal either way.  The Linux model seems to be
that function pointers are NULL for unimplemented methods (eg in
struct netdevice).

 - R.



More information about the general mailing list