[lkml]   [1998]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [test patch] dirty shared mappings

In article <> you write:

>The man page specifies:
> If MAP_ANONYMOUS is set in flags:
> + A new memory region is created and initialized to all
> zeros.
> This memory region can be shared only with descendants
> of the current process.
> ...

Hmmm. This omits the case of
x = mmap(0, len, prot, MAP_ANON|MAP_SHARED, fd, offset)
with a valid file descriptor. That creates/attaches a shared memory
region that is identified by the file the file descriptor refers to,
but the file is not really used as backing storage (Effect of MAP_ANON).

Regards, Felix.

 \ /
  Last update: 2005-03-22 13:41    [W:0.045 / U:1.176 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site