2000-11-06 16:51:40

by aprasad

[permalink] [raw]
Subject: to resize shared memory segment by using shmctl

Hi,
is it possible to change the size of a preexisting shared memory segment by
using shmctl?

AIX has comand SHM_SIZE to shmctl to resize any existing shared memory
segment.
can it be done without recreating the whole thing in linux?

thanks
Anil



2000-11-06 17:14:04

by Christoph Rohland

[permalink] [raw]
Subject: Re: to resize shared memory segment by using shmctl

Hi,

On Mon, 6 Nov 2000, [email protected] wrote:
> Hi, is it possible to change the size of a preexisting shared memory
> segment by using shmctl?
>
> AIX has comand SHM_SIZE to shmctl to resize any existing shared
> memory segment. can it be done without recreating the whole thing
> in linux?

No that's not possible in Linux. With 2.4 you can use posix shm and
use ftruncate to resize it.

Greetings
Christoph