In your message structure make an array of char (char ch_array[128]),
init the array with nulls (\0), copy your string into the array and
pass it to the RT task. You may also wish to pass the size of the
string as that may make it easier to handle on the RT side.
You could also use shared memory.
-Don
On Sun, 13 Jun 1999 [EMAIL PROTECTED] wrote:
>
> Hello :
> In my message to a RT process I can pass a character,
> but when I pass a string (correctly saying a pointer to the string) --
> I get a garbage on the RT side.
> This does not surprise me sine Linux and RT do not run in the
> same address space
> Here comes a question -- "How to pass a string to RT and
> from RT efficiently ?"
> Sincerely,
>
>
> ______________________________________________________________________
>
> Olga Mill ([EMAIL PROTECTED])
> Eastern Washington University
>
> Voice Mail : (509) 359-6907
>
> __________________________________________________________________________
>
>
> --- [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/
>
--- [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/