On Tuesday 24 July 2001 17:33, Chandu Reddy K wrote:
> HI
>   all,
>    i want to parse content of the file in my Rtlinux module
>   whether it is possible to do this one....
>   Can i call the Linux file functions, read, write ,open in rt space.
>   or i have to go for linux process to do this activity.....

File access isn't exactly low latency, hard real time, so it doesn't make 
much sense to have it in RTL space.

You *can* do file access from kernel space, though. (Kernel HTTP servers 
do it, for example.) However, that's not RTL context, so you still have 
to pass the data from Linux context to RTL context somewhere on the way. 

If it's just for initialization, it might be sufficient to do the parsing 
in init_module(), although I think it sounds like a pretty complicated 
solution... Still seems simpler and more flexible to do the configuration 
by passing data over a FIFO.

If you need to parse files while the RT system is running, again, how 
about doing the parsing in a user space application that sends raw text, 
symbols, tokenized code, pcode or whatever over an RTL FIFO? That way, 
you can chose exactly where in the parsing process you want to switch to 
hard real time. (If you're going to use scripts that actively control RT 
stuff, you have to pass something that the RT system can store and 
execute. I'd go for some tokenized or pcode format in that case, to avoid 
complex parser code in kernel space.)


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'

----- 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