Sreeramkr wrote:

> Hi,
>         How do I pass data between linux and rtlinux? what I mean is I
> want to send some data from rtlinux to linux module say I want to hookup
> the keyboard interrupt in rtlinux, read the data from the register then
> send the same to keyboard driver(interrupts are disabled in the linux
> driver) for ex: I type a, then rtlinux should read it from register and
> pass this a to linux keyboard driver. Then, linux has to send back ab
> back to rtlinux. I am not gettign enough document or examples for making
> use of rtlinux. Can I know some pointers for the same please.

To pass information between linux and RTlinux use fifos or mbuf. Fifos are
documented on rtl.org manpages. The mbuf module is documented in
rtlinux-3.0/drivers/mbuff/, and (i think) in rtlinux-3.0/doc. to grab a
interrupt use "rtl_request_irq" and install a handler. I think you should
use fifos in this case.

BTW.
You can NOT make a RTLinux thread wait for a linux task to finish. There is
not any funktion between linux and RTLinux to make them wait for each
other. This mean you can fx. not make a linux task queue, and put a RTLinux
thread to sleep in this. This will fail. In worst case a kernel crash will
occure.

Anders Gnistrup

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