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

Michael S. Tsirkin mst at mellanox.co.il
Mon Apr 18 10:39:55 PDT 2005


Quoting r. Roland Dreier <roland at topspin.com>:
> Subject: Re: [PATCH] uverbs with static libraries
> 
> 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);
> 

ok

-- 
MST - Michael S. Tsirkin



More information about the general mailing list