Quel est le but de MAP_ANONYMOUS drapeau de l'appel système mmap?

De la man page,

MAP_ANONYMOUS
              The mapping is not backed by any file; its contents are initialized to zero.  The fd and offset arguments are ignored; however, some implementations  require
              fd  to  be  -1  if  MAP_ANONYMOUS  (or  MAP_ANON)  is  specified, and portable applications should ensure this.  The use of MAP_ANONYMOUS in conjunction with
              MAP_SHARED is only supported on Linux since kernel 2.4.

Quel est le but de l'utilisation de MAP_ANONYMOUS? Un exemple serait la bonne. Aussi à Partir de là où la mémoire sera mappé?

Il est écrit sur man page The use of MAP_ANONYMOUS in conjunction with MAP_SHARED is only supported on Linux since kernel 2.4.
Comment puis-je partager la mémoire mappée avec MAP_ANONYMOUS avec d'autres processus?

OriginalL'auteur JagsVG | 2015-12-02