[openib-general] [PATCH] use mmiowb after doorbell ring
Jason Gunthorpe
jgunthorpe at obsidianresearch.com
Tue Oct 17 22:14:58 PDT 2006
On Wed, Oct 18, 2006 at 06:43:54AM +0200, Michael S. Tsirkin wrote:
> The difference here is that libibverbs insists on putting all plugins
> in a separate directory and passing full path to dlopen, which of course
> breaks this.
Yeah, plugins in a seperate dir are not well supported by all the
fancy things that dl does behind the scenes.. Unfortunately
dlopen will not permute a relative path with the search parameters
so there is no way to make it work other that fiddling LD_LIBRARY_PATH
prior to calling dlopen:
old = setenv("LD_LIBRARY_PATH",dirname(foo));
dlopen(basename(foo));
setenv("LD_LIBRARY_PATH",old);
I just look a quick look at the directory setup and if you are
changing things I'd say you should also arrange to have the libibverbs
soname stamped into the plugin path and soname. Something like
libmthca-libibverbs.2.so.0. Once you do that it is pretty safe
to put it in /usr/lib*
For libraries it is always best to design in support for multiple
major versions being installed at once since invariably someone will
need to do that down the road.
Jason
More information about the general
mailing list