On Sun, 2008-06-22 at 08:04 +0200, Savir, Ron (NSN - IL/Israel - MiniMD)
wrote:
> Hi Renier,
> 
> Thanks for the fast answer.
> Is it true to say that the HPI Plug-in is single in the system?

Not sure what you mean with that, but there can be more than one plugin
in the HPI running instance.

> At the first time of calling to the 'SaHpiSessionOpen()' the HPI 
> Infrastructure calls to the 'open()' HPI plug in only in the first time.

Yes.

> What append when 'SaHpiSessionClose()' function calls?

Only the session object is closed and the session id becomes invalid.

> Does only in the last time the HPI Infra calls to the 'close()' function to 
> delete the data structure that were created at the first 'open()' function?
> 

No, currently the infrastructure never does call close on the plugins
(maybe it should). The moment it could call close() is if the daemon
where shutting down. In that case, since the process space entirely is
getting reclaimed, all malloc'ed data structures in the plugins would
get cleaned up automatically anyway.

The only time when close() is called on the plugin is if you use
oHpiHandlerDestroy() on the plugin's instance. This is an exported API
and a OpenHPI specific extension.

        --Renier



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to