On Wed, 23 Jan 2002, Michael Nielsen wrote: > Hi > I am making a state machine as a realtime program, in RTLinux ver 3.1 > My program have to offer an API so that other programs can call some functions >inside my state machine. > What is the right way to do this ? is the only way to make use of a RT-FIFO and then >make some kind of simple protocol (X means do this, Y means do that), so that the >user programs put messages into the RT-FIFO which are read by the realtime program. >
Yes, that is one way. There are probably many ways to do this. It depends on what characteristics you want for your API. You can also think of some really complicated data structure to put into a shared memory segment. That's one other thing you can do. :) Probably a third option is to come up with some compiled bytecode that the rt-linux task interprets (this is not dissimilar to the berkeley packet filter). :) -Calin -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
