Pointers in Shared Memory

flibedin at taurus.BITNET flibedin at taurus.BITNET
Sun Apr 14 20:52:18 AEST 1991


I have some doubts concerning the use of pointers inside shared memory
obtained with SysV IPC functions.

My intention is to have a linked list in shared memory. For that
I run a test program that showed me that is not possible to store
a pointer obtained from malloc in shared memory, also I saw that
is not possible to store pointers to the user address space.

However, it is possible to store pointers INSIDE the shared memory,
and also to another shared memory segment.

Someone there has experience or comments on a problem like this one?

Fernando Libedinsky
Tel-Aviv University
flibedin at math.tau.ac.il



More information about the Comp.unix.wizards mailing list