[openib-general] Re: [PATH] problem dlopen libibverbs.so

Michael S. Tsirkin mst at mellanox.co.il
Wed Jul 20 10:19:12 PDT 2005


Quoting r. Roland Dreier <rolandd at cisco.com>:
> Subject: Re: [PATH] problem dlopen libibverbs.so
> 
>     Michael> I wander if its a better idea to scan the plugin
>     Michael> directory on ibv_get_devices.  Seems to me it might be
>     Michael> more debuggable for applications if they get error
>     Michael> messages when they call ibv_get_devices, and not at
>     Michael> startup: they can step in debugger to figure out what is
>     Michael> printing these things.
> 
>     Michael> Roland, would you take such a patch?
> 
> I was thinking the same thing -- lazy initialization of libibverbs
> when it is first use.  So yes, such a patch would be useful.
> 
>  - R.
> 

Actually, instead of keeping a global devie list, wouldnt it be a good idea
to add something like ibv_free_devices and let applications call this when
they are done going over the device list?

-- 
MST



More information about the general mailing list