On Fri, Jun 30, 2017 at 2:46 PM, Les Newell <[email protected]> wrote:
> Is it possible for a real time HAL module to read config values from disk? > I guess I could do it the ugly way and have two modules, one in user space > to read the disk and pass values to the mealtime module. > That is not "ugly" is the common why things are done in real-time systems. You try as hard as you can to push everything you can into user space. What you describe is actually "best practice". Look even at the normal Linux kernel. Typically an interrupt handler might read data off the interface then flip a bit and that's it. Processing the data happens in a user space task. Very common design pattern used over and over. I'm doing other work right now in a different area (not MK) and I'm using a full on actual RTOS (Not Linux based) and a common structure I use is the "work queue" I'll do minimum processing in the real time task then place a task on the queue. Then background non-real time tasks pull work requests off the queue. This is the "Computer Science 101" text book design that was like used back in the 1950's -- Chris Albertson Redondo Beach, California ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
