hi, 
i am studying MB's example, frank, distributed with rtl-2.3 and can out
work out the mechanism of transfering data from the RT fifos to the
/dev/rtfx. 
i can see that the non-RT part, in the main() section, opens up 3 files:
/dev/rtf1, /dev/rtf2, /dev/rtf3. is that right?
in the end of main(), still in the non-RT space, the contents of the
above devices is printed.
later on in the RT part of the frank module, 5 fifos are created as
follows:

int init_module(void)
{
        -----
        -----
        ---
        c[0] = rtf_create(1, 4000);
        c[1] = rtf_create(2, 4000);
        .
        .
        c[4] = rtf_create(5,100);
        ----
        ----
        -----
        rtf_create_handler(3, &my_handler);
        return 0;

}

i can also see that these are the fifos that are written to by the
thread_code(void *t) as follows:

thread_code(void *t){
        ------
        -----   
        -----
        rtf_put(fifo, data[fifo -1], 6);
        -----
        -----
        ----
return 0;
        }

i have not yet worked out how the data is transfered from the fifos that
were written to in the thread code to the files /dev/rtfx... that were
printed out in the end.
can anyone please let me know?

thanks in advance.

emeel
sydney.
-- [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/rtlinux/

Reply via email to