Search code examples
cshared-memoryrealloc

Reallocation of shared memory in c


could we reallocated a shared memory ? by passing it's address to realloc function , if NO , how I can reallocate the shared memory ?


Solution

  • You can call mremap(). Alternatively, you can call mmap() again, copy the data, and munmap() the original.