RE: [patch][rfc] expandable anonymous shared mappings

From: Christoph Rohland
Date: Wed Jun 23 2004 - 06:25:49 EST


Hi Stas, Hugh,

> The trick is that I am setting the old_len arg
> of mremap() to 0. This means that the new mapping
> is created while the old one is *not* being
> destroyed. So I get multiple virtual memory
> areas referencing the same shared memory region,
> lets call them "aliases".

I would propose you use the posix shm API for what you want to do and leave
anonymous shared memory as a special case of this like it is...

Keep it simple and stupid!

Just my 2cts
Christoph

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/