Ruotger, Have a look at the mmap man page (Search for MAP_FIXED), there is an option to a mmap call that allows you to specify the starting address of the memory region to which you memory map a file. Since you can memory map anonomous files (IE files that don't exist on disk, basically just a shared memory segment), you could use mmap to create the fixed location shared memory segment that you use between your applications. Hope that helps, Brian Tabone On Wednesday, May 14, 2003, at 09:26AM, Ruotger Skupin <skupin@ableton.com> wrote:
Hi,
I have a problem where one process is building data-structures/objects
with lots of pointers for a second process to use. Currently we do that
using shared memory. We map the shared memory in a way that it appeares
at the same memory range in both processes (for making the pointers
work). This works fine on windows and on MacOS 9 but I ran into various
trouble on MacOS X
Is there a solution to allocate shared memory in two processes at the
same address? (about 50-100MB)
Any ideas?
Roddi
---
Ruotger Skupin
Engine Development
ableton schoenhauser allee 6/7
10119 berlin germany www.ableton.com
_______________________________________________
darwin-kernel mailing list | darwin-kernel@lists.apple.com
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Brian Tabone