Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
ipcrm(1) OSS Shell and Utilities Reference Manual
NAME
ipcrm - Removes message queues, semaphore identifiers, or shared memory identifiers and deal-
locates their data structures
SYNOPSIS
ipcrm [-m shared_memory_ID][-M shared_memory_key]
[-q message_queue_ID][-Q message_key]
[-s semaphore_ID][-S semaphore_key]
FLAGS
-m shared_memory_ID
Removes the shared memory identifier specified by the shared_memory_ID value, and
removes the associated shared memory segment and data structure after the final
detach operation.
-M shared_memory_key
Removes the shared memory identifier created with the specified shared_memory_key
value, and removes the associated shared memory segment and data structure after the
final detach operation.
-q message_queue_ID
Removes the message queue identifier specified by the message_queue_ID value, and
removes the associated message queue and the data structure.
-Q message_key
Removes the message queue identifier created with the specified message_key value,
and removes the associated message queue and the data structure.
-s semaphore_ID
Removes the semaphore set identifier specified by the semaphore_ID value, and
removes the associated set of semaphores and data structure.
-S semaphore_key
Removes the semaphore set identifier created with the specified semaphore_key value,
and removes the associated set of semaphores and data structure.
DESCRIPTION
The ipcrm command removes one or more message queues, semaphore identifiers, or shared
memory identifiers from the processor on which it runs. The details of the remove operations are
described on the reference pages for the msgctl(), semctl(), and shmctl() functions. The
identifiers and keys can be determined by using the ipcs command.
EXAMPLES
1. To remove the shared memory segment associated with shared memory identifier 128
from the processor on which your terminal session runs, enter:
ipcrm -m 128
2. To remove the shared memory segment associated with shared memory identifier 128 on
processor 4, enter:
run -cpu=4 ipcrm -m 128
3. To remove the semaphore set associated with semaphore identifier 222 from the proces-
sor on which your terminal session runs, enter:
ipcrm -s 222
4−50 Hewlett-Packard Company 527188-004