[openib-general] strange behaviour in svn 4706 libibverbs/init.c with two adapters

Christoph Raisch RAISCH at de.ibm.com
Tue Jan 3 08:55:43 PST 2006


Hi Roland,
could it be that
libibverbs/src/init.c:271 *list[num_devices++]
actually should be a (*list)[num_devices++]
for num_devices>1 ?

I personally can't follow anymore when I see a ***list,
but my system here thinks that
&(*list[num_devices++]) for num_devices=0 is 0x10017c10
&(*list[num_devices++]) for num_devices=1 is (nil)

&((*list)[num_devices++]) for num_devices=0 is 0x10017c10
&((*list)[num_devices++]) for num_devices=1 is 0x10017c18
To me the second one looks better...

If you just have one IB adapter you won't see a difference...

Gruss / Regards . . . Christoph R.




More information about the general mailing list