Shared mapping

Valdis.Kletnieks at Valdis.Kletnieks at
Mon Jan 12 12:36:08 EST 2015

On Mon, 12 Jan 2015 11:01:06 -0600, riya khanna said:
> With shared memory mappings, once A and B both map the same memory
> address/file they see the same contents
> A [0xaaaaaaaa] - maps - to -> [0xAAAAAAAA]
> B [0xbbbbbbbb] - maps - to -> [0xAAAAAAAA]
> However, if A changes (update) the mappings to point to a different
> memory area/file offset, B sees different contents
> A [0xaaaaaaaa] - maps - to -> [0xBBBBBBBB]

Well, don't do that then.  Or have A notify B via some sort of IPC
that it's done it so B can update its mappings.

I'm not seeing a need for kernel support for poorly designed userspace code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : 

More information about the Kernelnewbies mailing list