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
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to