Re: Killing clones

Linus Torvalds (torvalds@transmeta.com)
Mon, 15 Sep 1997 13:26:37 -0700 (PDT)


On Mon, 15 Sep 1997, Teunis Peters wrote:
>
> (and how does one grow/shrink a mmap'd region? That's one thing I still
> haven't figured out... apparently growing/shrinking mmap'd files uses
> 'ftruncate' but what about nonfile shared memory regions?)

You can use "mremap()" to grow or shrink (or move) an existing memory map.

I don't know if anybody uses it, though.

Linus