views:

27

answers:

1

How can I create an apr_table_t type's table in shared memory segment?

A: 

This may not be possible unless shared memory is mapped to the same virtual address.

Documentation for the apr_shm_baseaddr_get function says:

Retrieve the base address of the shared memory segment. NOTE: This address is only usable within the callers address space, since this API does not guarantee that other attaching processes will maintain the same address mapping.

APR apr_shm_baseaddr_get documentation

Internally the apr_table_t struct is using apr_array_header_t which contains pointers to apr_pool_t and char (array elements).

Boris

related questions