Skip to contentSkip to conversation

to resize shared memory segment by using shmctl

DISCUSSION [email protected] 2 participants 2 messages Nov 6, 2000

lore
Share & tools
lore
#0 lore raw

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw

Hi,

Quoted 6 lines · 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/