Thread (45 messages) 45 messages, 12 authors, 2017-03-16

Re: [RFC PATCH 00/13] Introduce first class virtual address spaces

flat view

From: "Luck, Tony" <tony.luck@intel.com>
Date: 2017-03-15 22:09:53
Also in: linux-fsdevel, linux-mips, linux-mm

On Wed, Mar 15, 2017 at 03:02:34PM -0700, Till Smejkal wrote:
I don't agree here. VAS segments are basically in-memory files that are handled by
the kernel directly without using a file system. Hence, if an application uses a VAS
segment to store data the same rules apply as if it uses a file. Everything that it
saves in the VAS segment might be accessible by other applications. An application
using VAS segments should be aware of this fact. In addition, the resources that are
represented by a VAS segment are not leaked. As I said, VAS segments are much like
files. Hence, if you don't want to use them any more, delete them. But as with files,
the kernel will not delete them for you (although something like this can be added).
So how do they differ from shmget(2), shmat(2), shmdt(2), shmctl(2)?

Apart from VAS having better names, instead of silly "key_t key" ones.

-Tony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help