On 12/12/2013 6:10 PM, Lisandro Massera wrote:
> I´m trying to create a new Realtime Hal Component which should open a 
> configuration file when it is loaded. The configuration file should be 
> specified in the loadrt command. Is this possible? Does anyone know of 
> another component that does this, so as to see how it is made?
> Thanks for the advice.
> Lisandro Massera                                      
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers
Well, those of us who have read ahead and followed the links, know that 
it can be done and why it shouldn't be done. I'd like to suggest an 
alternative. Use shared memory.

On initialization, read and parse the file in user space and create the 
appropriate data structures in shared memory. Then, sometime after it 
has been loaded, the hal module can be flagged (I'm not sure how -- look 
at a pin, perhaps) to "read" the shared memory.

I believe that this circumvents the issues of actually reading the file 
from the kernel. The user space program can determine where the file is. 
The user space program can use as much memory as it wants, and can even 
crash and burn without taking the system down.

Perhaps someone who has actually written a hal module and knows what he 
is doing can flesh out a generic way of doing this so that anyone who 
wants to use this mechanism has a clean model of how to do it.

Regards,

Ken

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to