apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manfred Rebentisch <mrebenti...@comparat.de>
Subject SHM / RMM pointer values
Date Fri, 15 Jun 2007 07:23:58 GMT
Hello,
I want to store an object to shared memory (created with apr_shm_create). For 
example the structure is:

struct mystr {
	struct mystr* next;
	char* data;
	size_t dsize;
};

struct mystr* obj;

If I allocate SHM for the object, I can attached from another process to the 
object. But the members of the object (SHM allocations too)  have pointers 
from creation process.

The process, which attached the SHM get another pointer value (using 
apr_rmm_init too).

Is there any trick to get the same pointer values, the same value  in 
different processes?

Thank you for an idea.

Manfred

Mime
View raw message