[ofa-general] Re: [PATCH] opensm: provide methods for getting the OpenSM and Log
Sasha Khapyorsky
sashak at voltaire.com
Sun Mar 9 13:05:07 PDT 2008
Hi Tim,
On 17:21 Tue 04 Mar , Timothy A. Meier wrote:
>
> I wrote this patch so I could avoid passing around a pointer to the opensm,
> just to
> get access to the log. Also, it provides a method to get a pointer to the
> opensm
> as well, because there are several instances where this is needed for a
> trivial reason,
> and many functions include it as one of their arguments.
You can pass pointer to opensm object to a function where you structure
is created (*_init() or so) and to store it there if you like. Basically
in OpenSM we are avoiding to use global non-constant data and I don't
see any really good reason to change this.
> Since the opensm
> is a
> singleton,
It could change some days.
Sasha
More information about the general
mailing list