[openib-general] [PATCH] uverbs with static libraries
Michael S. Tsirkin
mst at mellanox.co.il
Sun Apr 10 01:47:25 PDT 2005
Hello, Roland!
I'd like to get userspace verbs working with static libraries.
My motivation is currently enabling our code coverage tools which only
work well with static libraries, but I expect there to be
other uses.
The following patch makes it possible to link libmthca directly
into the main executable.
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Index: libibverbs/src/init.c
===================================================================
--- libibverbs/src/init.c (revision 2104)
+++ libibverbs/src/init.c (working copy)
@@ -105,6 +105,8 @@
return;
}
+ load_driver(NULL);
+
for (i = 0; i < so_glob.gl_pathc; ++i)
load_driver(so_glob.gl_pathv[i]);
}
--
MST - Michael S. Tsirkin
More information about the general
mailing list