[openib-general] [PATCH] libibcm: modify API to support multi-threaded event processing

Dotan Barak dotanb at dev.mellanox.co.il
Tue Aug 29 05:21:49 PDT 2006


Sean Hefty wrote:
>> Modify the libibcm API to provide better support for multi-threaded
>> event processing. CM devices are no longer tied to verb devices
>> and hidden from the user. This should allow an application to direct
>> events to specific threads for processing.
>>
>> This patch also removes the libibcm's dependency on libsysfs.
>>
>> The changes do not break the kernel ABI, but do break the library's
>> API in such a way that requires (hopefully minor) changes to all
>> existing users.
>
> I have committed this change in revision 9128.
>
There are compilation errors with this patch when using gcc 4.1.0:

make all-am
make[1]: Entering directory 
`/tmp/openib_gen2/last_stable/src/userspace/libibcm'
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I. -I./include -I../libibverbs/include -g -Wall -D_GNU_SOURCE -g -O2 
-MT cm.lo -MD -MP -MF ".deps/cm.Tpo" -c -o cm.lo `test -f 'src/cm.c' || 
echo './'`src/cm.c; \
then mv -f ".deps/cm.Tpo" ".deps/cm.Plo"; else rm -f ".deps/cm.Tpo"; 
exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I../libibverbs/include -g 
-Wall -D_GNU_SOURCE -g -O2 -MT cm.lo -MD -MP -MF .deps/cm.Tpo -c 
src/cm.c -fPIC -DPIC -o .libs/cm.o
src/cm.c: In function ‘ib_cm_destroy_id’:
src/cm.c:250: warning: implicit declaration of function ‘offsetof’
src/cm.c:250: error: expected expression before ‘struct’
src/cm.c: In function ‘ib_cm_send_rep’:
src/cm.c:404: error: expected expression before ‘struct’
src/cm.c: In function ‘ib_cm_ack_event’:
src/cm.c:917: error: expected expression before ‘struct’
src/cm.c:921: error: expected expression before ‘struct’
src/cm.c:939: error: expected expression before ‘struct’
make[1]: *** [cm.lo] Error 1
make[1]: Leaving directory 
`/tmp/openib_gen2/last_stable/src/userspace/libibcm'
make: *** [all] Error 2


thanks
Dotan




More information about the general mailing list