Hi,

As a beginner a few months back I found the frank zappa example as perhaps
the most useful single example in getting me started with rtlinux.  As I
recall it has 3 input fifos and 2 output fifos.  The 2 output fifos coming
from the kernel module just correspond to the two threads "frank" and
"zappa" each outputting their own string "frank" or "zappa".  The user
space program is looking for things to appear on either of these queues and
then just prints them to the screen.

The user space program also has commanding capability!   It can send things
back to the kernel module.  It does this in a single fifo.  From the
perspective of the user space program, there are only 3 fifos altogether.
The command sent in the single fifo needs to indentify which of the threads
(frank or zappa) you want to command, and then the specific command you
want to give.

Inside the kernel module, the command is received by a special task called
a fifo handler.  The fifo handler figures out who the command is for, and
then places it into a dedicated fifo for "frank" or another dedicated fifo
for "zappa".  The code inside each thread decides what to do with the
command.  As given in the example, you can command to stop the task, change
the period, or probably do other things as well.

I don't know if this answers your question, but I hope it helps.  I had no
trouble running "make test" in the frank folder after 3.0 / 2.2.18 were
both properly compiled according to the installation instructions.

Oliver Enders



                                                                                       
       
                    "Minich,                                                           
       
                    Raymond C"           To:     "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> 
       
                    <RMinich@DRES        cc:                                           
       
                    SER.COM>             Subject:     [rtl] RTL example "Frank" 
(Zappa)       
                    Sent by:                                                           
       
                    owner-rtl@fsm                                                      
       
                    labs.com                                                           
       
                                                                                       
       
                                                                                       
       
                    07/30/01                                                           
       
                    09:04 AM                                                           
       
                    Please                                                             
       
                    respond to                                                         
       
                    rtl                                                                
       
                                                                                       
       
                                                                                       
       




Can somebody point me in the right direction regarding why the example
"frank" creates/opens/initializes five (5) fifos
but the documentation only refers to 3 of them being used by the
application?

init_module does a.........

rtf_destroy(1);
thru
rtf_destroy(5);

then a......

c[0] = rtf_create(1,4000);
c[1] = rtf_create(2,4000);

then a
c[2] = rtf_create(3,200);
c[3] = rtf_create(4,100);
c[4] = rtf_create(5,100);


What are FIFO's 1 & 2 for?? What is their purpose?

Thanks for any advise you have for me in this matter

Regards,

Ray Minich
Dresser Inc..

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/




----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/

Reply via email to