mmap() disk file to shared memory
Posted on 1997-04-21
I am trying to do the following in the Solaris environment.
My basic problem is that I would like to mmap() a disk file into *shared* memory. Or does this not make any sense at all?
I have been able to mmap() a disk file into memory.
I have been able to create a shared memory segment and attached/detached to it.
Now, what I would like is to mmap() the disk file into the shared memory segment I create in the previous step. I tried this by passing the address returned by the creation of the shared memory segment, to the mmap() call. But all mmap() did was to map the file in a memory location "close to" the shared memory segment.
Thanks in advance.