From: Patrick Jakubowski <patrick.jakubowski@googlemail.com>
Subject: Re: How To Create And Use Memory Map Files
Date: Tue, 19 Feb 2019 01:26:15 -0800 (PST)
Date: 2019-02-19T01:26:15-08:00 [thread overview]
Message-ID: <b760a4b0-2cdf-4a03-af01-7405dd4957db@googlegroups.com> (raw)
In-Reply-To: <gcvgkeFjbebU1@mid.individual.net>
On Monday, 18 February 2019 11:44:33 UTC+1, Niklas Holsti wrote:
> On 19-02-18 10:19 , Dmitry A. Kazakov wrote:
>
> > In more OSes more advanced than Linux one can have shared memory without
> > any files involved. The memory object could even be anonymous if one
> > process passes a handle to the memory to another.
>
> Linux supports the "Unix System V" inter-process communication
> mechanisms, including shared memory segments that are not memory-mapped
> files and can be anonymous in the above sense.
>
> See e.g. http://man7.org/linux/man-pages/man7/svipc.7.html
In Linux even memory mapped files are not necessary backed by a file. It can be just pages of memory even without file descriptor. These mappings are called ANONYMOUS and can be both private to a process or shared between processes. I did quick look at gnatcoll and that library doesn't support anonymous mappings.I would make quick C function call to mmap() or modify GNATCOLL.Mmap package.
prev parent reply other threads:[~2019-02-19 9:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-16 19:40 How To Create And Use Memory Map Files Michael390@gmail.com
2019-02-16 19:58 ` Simon Wright
2019-02-16 21:13 ` Per Sandberg
2019-02-16 21:34 ` Dmitry A. Kazakov
2019-02-17 22:41 ` Rego, P.
2019-02-18 8:19 ` Dmitry A. Kazakov
2019-02-18 9:31 ` Rego, P.
2019-02-18 10:23 ` Dmitry A. Kazakov
2019-02-18 10:44 ` Niklas Holsti
2019-02-19 9:26 ` Patrick Jakubowski [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox