***SPAM*** Re: ***SPAM*** Re: [ofa-general] [PATCH] libibmad: remove functions which use pthread

Hal Rosenstock hal.rosenstock at gmail.com
Wed Feb 18 07:20:13 PST 2009


On Tue, Feb 17, 2009 at 7:33 PM, Sasha Khapyorsky <sashak at voltaire.com> wrote:
> On 18:21 Tue 17 Feb     , Hal Rosenstock wrote:
>> >
>> > For utilities which run once through I think the old functions work just
>> > fine.
>>
>> Well, sort of... Aren't mad_portid "collisions" possible when multiple
>> programs are run concurrently ?
>
> No.

With the old API, mad_portid can be overwritten by another process or
thread. Another thread is not an expected use case but it is possible.

>> > However, it is pretty confusing which interface to use...  [or even that
>> > there
>> > are 2 interfaces, but I digress] (see below)
>>
>> I don't think the newer improved interfaces were ever documented.
>
> The old interfaces were not documented too. So it is at least consistent
> :).

There are no man pages but there is a doc (libibmad.txt) which is
somewhat out of date as it was never updated for the new interfaces.

-- Hal

> Sasha



More information about the general mailing list