Re: mmap and MAP_NOSYNC

2002-06-18 Thread Andy Sporner
joy ganguly wrote: >Hi all, > >Hi, > >I want to use mmap as a means of doing IPC between >unrelated processes. I do *not* want the data to hit >the disk. So this is what I do :- > >fd = open(file, O_RDWR); >p = mmap(fd, MAP_NOSYNC | MAP_SHARED); >mlock(p, len); > >/* Whack around with shmem */ >

mmap and MAP_NOSYNC

2002-06-18 Thread joy ganguly
Hi all, Hi, I want to use mmap as a means of doing IPC between unrelated processes. I do *not* want the data to hit the disk. So this is what I do :- fd = open(file, O_RDWR); p = mmap(fd, MAP_NOSYNC | MAP_SHARED); mlock(p, len); /* Whack around with shmem */ Now my question is , once I have