[openib-general] Re: [PATCH] uverbs with static libraries

Roland Dreier roland at topspin.com
Mon Apr 18 08:57:39 PDT 2005


It made more sense to me to load a static driver once before calling
find_drivers() for each entry in our driver path.  Is there anything
wrong with this?

 - R.

--- libibverbs/src/init.c	(revision 2156)
+++ libibverbs/src/init.c	(working copy)
@@ -198,6 +198,11 @@ static void INIT ibverbs_init(void)
 	if (ibv_init_mem_map())
 		return;
 
+	/*
+	 * Check if a driver is statically linked, and if so load it first.
+	 */
+	load_driver(NULL);
+
 	user_path = getenv(OPENIB_DRIVER_PATH_ENV);
 	if (user_path) {
 		wr_path = strdupa(user_path);



More information about the general mailing list