Vidarte Ana wrote:
> 
> Hello,
> 
>         Can I use fopen, fprintf, fclose functions in a real time
> application (composed of init_module();)?

No you may be preempting a Linux task doing the same thing....

>         I have to make a real time application with a periodic task, but I
> need to save the result of this task, so I try to use these functions.
> However, the real time module does not recognize the functions. Does anyone
> have an example of a real time application with a periodic task that saves
> data to a file?
> 
> Ana.

This is what you have to do. Look at the examples for help.
Create a fifo in the rt task.
Write data to that fifo as required.
use 
cat /dev/rtfX > myfile.
you may need to be root or to open  up permissions on the /dev/rtfX

You can even do it in a local directory as non root.

mknod myfifo c 150 3  ( X = 3 here )
and cat ./myfifo > myfile

 where X is the chosen fifo number 

You can only write to the myfile you cannot ( whith this simple example
) read the file back.



Have fun
  Phil
--- [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