On Monday 09 April 2001 21:50, stephane wrote:
> ----- Original Message -----
> From: "Lothar Krause" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, April 08, 2001 10:28 AM
> Subject: [rtl] shared memory with the same address
>
> > Is there some way to get a shared memory area that has the same address
> > in both kernel and user space?
>
> YES, it is !
> but be careful, the same space will be mapped, but the adress will not be
> the same, because it is virtual memory.
Well, I guess that's the problem here; the addresses will not be the same -
which isn't very nice if you're trying to share structs and stuff with
pointers in them. :-)
One could use offsets instead, of course. Minor overhead, but you might want
C++ with the operator overloading to make it really nice and safe to use on
the source level, at least if there's lots of code messing with those
pointers...
//David
.- 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] -'
-- [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/