[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 3

ipcrm Command

Purpose

Removes message queue, semaphore set, or shared memory identifiers.

Syntax

ipcrm [ -m SharedMemoryID ] [ -M SharedMemoryKey ] [ -q MessageID ] [ -Q MessageKey ] [ -s SemaphoreID ] [ -S SemaphoreKey ]

Description

The ipcrm command removes one or more message queues, semaphore sets, or shared memory identifiers.

Flags

-m SharedMemory ID Removes the shared memory identifier SharedMemoryID. The shared memory segment and data structure associated with SharedMemoryID are also removed after the last detach operation.
-M SharedMemoryKey Removes the shared memory identifier, created with the key SharedMemoryKey. The shared memory segment and data structure associated with it are also removed after the last detach operation.
-q MessageID Removes the message queue identifier MessageID and the message queue and data structure associated with it.
-Q MessageKey Removes the message queue identifier, created with the key MessageKey, and the message queue and data structure associated with it.
-s SemaphoreID Removes the semaphore identifier SemaphoreID and the set of semaphores and data structure associated with it.
-S SemaphoreKey Removes the semaphore identifier, created with the key SemaphoreKey, and the set of semaphores and data structure associated with it.

The msgctl, shmctl, and semctl subroutines provide details of the remove operations. The identifiers and keys can be found by using the ipcs command.

Examples

To remove the shared memory segment associated with SharedMemoryID 18602, enter:

ipcrm -m 18602

Related Information

The ipcs command.

The msgget subroutine, semctl subroutine, semget subroutine, shmctl subroutine, shmget subroutine.

The Commands Overview in AIX Version 4.3 System User's Guide: Operating System and Devices.


[ Previous | Next | Contents | Glossary | Home | Search ]