Depends.
That is one way. Another is to wrap your rtlinux task with a normal linux
device driver which can then communicate with users using ordinary
read/write/ioctl functions. You'd need some way to notify the rtlinux task
that there's something for it to do. If it's already a periodic task,
simple semaphores would suffice. Otherwise, a FIFO just for notification
would make the simplest user interface in terms of using familiar
functions.
Norm
----- Original Message -----
From: Michael Nielsen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 23, 2002 11:47 AM
Subject: [rtl] API to rtlinux programs
> Hi
> I am making a state machine as a realtime program, in RTLinux ver 3.1
> My program have to offer an API so that other programs can call some
functions inside my state machine.
> What is the right way to do this ? is the only way to make use of a
RT-FIFO and then make some kind of simple protocol (X means do this, Y
means do that), so that the user programs put messages into the RT-FIFO
which are read by the realtime program.
>
> Thanks in advance
> Michael
>
>
> -- [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/
>
> -- [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/
>
-- [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/